Merge remote-tracking branch 'origin/master' into 6.0.x

This commit is contained in:
William Cheng
2021-05-13 18:44:58 +08:00
692 changed files with 28026 additions and 3166 deletions

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -105,7 +108,7 @@ class AdditionalPropertiesClass(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -117,7 +120,7 @@ class Animal(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -131,7 +134,7 @@ class ApiResponse(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class ArrayOfArrayOfNumberOnly(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class ArrayOfNumberOnly(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -137,7 +140,7 @@ class ArrayTest(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -211,7 +214,7 @@ class Capitalization(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class Cat(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class CatAllOf(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -106,7 +109,7 @@ class Category(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class ClassModel(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class Client(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class Dog(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class DogAllOf(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -119,7 +122,7 @@ class EnumArrays(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -60,7 +63,7 @@ class EnumClass(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -285,7 +288,7 @@ class EnumTest(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -81,7 +84,7 @@ class File(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -105,7 +108,7 @@ class FileSchemaTestClass(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class Foo(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -522,7 +525,7 @@ class FormatTest(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -105,7 +108,7 @@ class HasOnlyReadOnly(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -78,7 +81,7 @@ class HealthCheckResult(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class InlineResponseDefault(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class List(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -165,7 +168,7 @@ class MapTest(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -131,7 +134,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -105,7 +108,7 @@ class Model200Response(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class ModelReturn(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -158,7 +161,7 @@ class Name(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -355,7 +358,7 @@ class NullableClass(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class NumberOnly(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -217,7 +220,7 @@ class Order(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -131,7 +134,7 @@ class OuterComposite(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -60,7 +63,7 @@ class OuterEnum(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -60,7 +63,7 @@ class OuterEnumDefaultValue(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -60,7 +63,7 @@ class OuterEnumInteger(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -60,7 +63,7 @@ class OuterEnumIntegerDefaultValue(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -80,7 +83,7 @@ class OuterObjectWithEnumProperty(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -219,7 +222,7 @@ class Pet(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -105,7 +108,7 @@ class ReadOnlyFirst(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -79,7 +82,7 @@ class SpecialModelName(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -105,7 +108,7 @@ class Tag(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else:

View File

@@ -10,7 +10,10 @@
"""
import inspect
try:
from inspect import getfullargspec
except ImportError:
from inspect import getargspec as getfullargspec
import pprint
import re # noqa: F401
import six
@@ -263,7 +266,7 @@ class User(object):
def convert(x):
if hasattr(x, "to_dict"):
args = inspect.getargspec(x.to_dict).args
args = getfullargspec(x.to_dict).args
if len(args) == 1:
return x.to_dict()
else: