forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/5.1.x' into 6.0.x
This commit is contained in:
@@ -4,8 +4,8 @@ this is a model that allows payloads of type object or number
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**class_name** | **str** | | defaults to nulltype.Null
|
||||
**color** | **str** | | [optional] if omitted the server will use the default value of "red"
|
||||
**class_name** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**cultivar** | **str** | | defaults to nulltype.Null
|
||||
**length_cm** | **float** | | defaults to nulltype.Null
|
||||
**mealy** | **bool** | | [optional]
|
||||
**sweet** | **bool** | | [optional]
|
||||
**cultivar** | **str** | | [optional]
|
||||
**length_cm** | **float** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**shape_type** | **str** | |
|
||||
**quadrilateral_type** | **str** | | defaults to nulltype.Null
|
||||
**triangle_type** | **str** | | defaults to nulltype.Null
|
||||
**quadrilateral_type** | **str** | | [optional]
|
||||
**triangle_type** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**quadrilateral_type** | **str** | |
|
||||
**shape_type** | **str** | | defaults to nulltype.Null
|
||||
**shape_type** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**shape_type** | **str** | |
|
||||
**quadrilateral_type** | **str** | | defaults to nulltype.Null
|
||||
**triangle_type** | **str** | | defaults to nulltype.Null
|
||||
**quadrilateral_type** | **str** | | [optional]
|
||||
**triangle_type** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -5,8 +5,8 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema >
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**shape_type** | **str** | |
|
||||
**quadrilateral_type** | **str** | | defaults to nulltype.Null
|
||||
**triangle_type** | **str** | | defaults to nulltype.Null
|
||||
**quadrilateral_type** | **str** | | [optional]
|
||||
**triangle_type** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**triangle_type** | **str** | |
|
||||
**shape_type** | **str** | | defaults to nulltype.Null
|
||||
**shape_type** | **str** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -66,7 +66,7 @@ class ApiClient(object):
|
||||
def __init__(self, configuration=None, header_name=None, header_value=None,
|
||||
cookie=None, pool_threads=1):
|
||||
if configuration is None:
|
||||
configuration = Configuration()
|
||||
configuration = Configuration.get_default_copy()
|
||||
self.configuration = configuration
|
||||
self.pool_threads = pool_threads
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -196,11 +194,6 @@ class Cat(ModelComposed):
|
||||
required_args = {
|
||||
'class_name': class_name,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -191,11 +189,6 @@ class ChildCat(ModelComposed):
|
||||
required_args = {
|
||||
'pet_type': pet_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -189,11 +187,6 @@ class ComplexQuadrilateral(ModelComposed):
|
||||
'shape_type': shape_type,
|
||||
'quadrilateral_type': quadrilateral_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -88,8 +86,8 @@ class ComposedOneOfNumberWithValidations(ModelComposed):
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'class_name': (str,), # noqa: E501
|
||||
'color': (str,), # noqa: E501
|
||||
'class_name': (str,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@@ -98,8 +96,8 @@ class ComposedOneOfNumberWithValidations(ModelComposed):
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'class_name': 'className', # noqa: E501
|
||||
'color': 'color', # noqa: E501
|
||||
'class_name': 'className', # noqa: E501
|
||||
}
|
||||
|
||||
required_properties = set([
|
||||
@@ -118,10 +116,7 @@ class ComposedOneOfNumberWithValidations(ModelComposed):
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""ComposedOneOfNumberWithValidations - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
|
||||
Keyword Args:
|
||||
class_name (str): defaults to nulltype.Null # noqa: E501
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
@@ -153,9 +148,9 @@ class ComposedOneOfNumberWithValidations(ModelComposed):
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
color (str): [optional] if omitted the server will use the default value of "red" # noqa: E501
|
||||
class_name (str): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
class_name = kwargs.get('class_name', nulltype.Null)
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
@@ -187,13 +182,7 @@ class ComposedOneOfNumberWithValidations(ModelComposed):
|
||||
'_visited_composed_classes': self._visited_composed_classes,
|
||||
}
|
||||
required_args = {
|
||||
'class_name': class_name,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -194,11 +192,6 @@ class Dog(ModelComposed):
|
||||
required_args = {
|
||||
'class_name': class_name,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -189,11 +187,6 @@ class EquilateralTriangle(ModelComposed):
|
||||
'shape_type': shape_type,
|
||||
'triangle_type': triangle_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -195,11 +193,6 @@ class Fruit(ModelComposed):
|
||||
}
|
||||
required_args = {
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -81,10 +79,10 @@ class FruitReq(ModelComposed):
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'cultivar': (str,), # noqa: E501
|
||||
'length_cm': (float,), # noqa: E501
|
||||
'mealy': (bool,), # noqa: E501
|
||||
'sweet': (bool,), # noqa: E501
|
||||
'cultivar': (str,), # noqa: E501
|
||||
'length_cm': (float,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@@ -93,10 +91,10 @@ class FruitReq(ModelComposed):
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'cultivar': 'cultivar', # noqa: E501
|
||||
'length_cm': 'lengthCm', # noqa: E501
|
||||
'mealy': 'mealy', # noqa: E501
|
||||
'sweet': 'sweet', # noqa: E501
|
||||
'cultivar': 'cultivar', # noqa: E501
|
||||
'length_cm': 'lengthCm', # noqa: E501
|
||||
}
|
||||
|
||||
required_properties = set([
|
||||
@@ -115,11 +113,7 @@ class FruitReq(ModelComposed):
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""FruitReq - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
|
||||
Keyword Args:
|
||||
cultivar (str): defaults to nulltype.Null # noqa: E501
|
||||
length_cm (float): defaults to nulltype.Null # noqa: E501
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
@@ -152,10 +146,10 @@ class FruitReq(ModelComposed):
|
||||
_visited_composed_classes = (Animal,)
|
||||
mealy (bool): [optional] # noqa: E501
|
||||
sweet (bool): [optional] # noqa: E501
|
||||
cultivar (str): [optional] # noqa: E501
|
||||
length_cm (float): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
cultivar = kwargs.get('cultivar', nulltype.Null)
|
||||
length_cm = kwargs.get('length_cm', nulltype.Null)
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
@@ -187,14 +181,7 @@ class FruitReq(ModelComposed):
|
||||
'_visited_composed_classes': self._visited_composed_classes,
|
||||
}
|
||||
required_args = {
|
||||
'cultivar': cultivar,
|
||||
'length_cm': length_cm,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -195,11 +193,6 @@ class GmFruit(ModelComposed):
|
||||
}
|
||||
required_args = {
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -1,171 +0,0 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
ModelNormal,
|
||||
ModelSimple,
|
||||
cached_property,
|
||||
change_keys_js_to_python,
|
||||
convert_js_args_to_python_args,
|
||||
date,
|
||||
datetime,
|
||||
file_type,
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
|
||||
|
||||
class InlineObject(ModelNormal):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
Attributes:
|
||||
allowed_values (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
with a capitalized key describing the allowed value and an allowed
|
||||
value. These dicts store the allowed enum values.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||
variable value to the discriminator class name.
|
||||
validations (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
that stores validations for max_length, min_length, max_items,
|
||||
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||
inclusive_minimum, and regex.
|
||||
additional_properties_type (tuple): A tuple of classes accepted
|
||||
as additional properties values.
|
||||
"""
|
||||
|
||||
allowed_values = {
|
||||
}
|
||||
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = None
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
return {
|
||||
'name': (str,), # noqa: E501
|
||||
'status': (str,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
'status': 'status', # noqa: E501
|
||||
}
|
||||
|
||||
_composed_schemas = {}
|
||||
|
||||
required_properties = set([
|
||||
'_data_store',
|
||||
'_check_type',
|
||||
'_spec_property_naming',
|
||||
'_path_to_item',
|
||||
'_configuration',
|
||||
'_visited_composed_classes',
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""InlineObject - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
Defaults to True
|
||||
_path_to_item (tuple/list): This is a list of keys or values to
|
||||
drill down to the model in received_data
|
||||
when deserializing a response
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_configuration (Configuration): the instance to use when
|
||||
deserializing a file_type parameter.
|
||||
If passed, type conversion is attempted
|
||||
If omitted no type conversion is done.
|
||||
_visited_composed_classes (tuple): This stores a tuple of
|
||||
classes that we have traveled through so that
|
||||
if we see that class again we will not use its
|
||||
discriminator again.
|
||||
When traveling through a discriminator, the
|
||||
composed schema that is
|
||||
is traveled through is added to this set.
|
||||
For example if Animal has a discriminator
|
||||
petType and we pass in "Dog", and the class Dog
|
||||
allOf includes Animal, we move through Animal
|
||||
once using the discriminator, and pick Dog.
|
||||
Then in Dog, we will make an instance of the
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
name (str): Updated name of the pet. [optional] # noqa: E501
|
||||
status (str): Updated status of the pet. [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
_configuration = kwargs.pop('_configuration', None)
|
||||
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||
|
||||
if args:
|
||||
raise ApiTypeError(
|
||||
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||
args,
|
||||
self.__class__.__name__,
|
||||
),
|
||||
path_to_item=_path_to_item,
|
||||
valid_classes=(self.__class__,),
|
||||
)
|
||||
|
||||
self._data_store = {}
|
||||
self._check_type = _check_type
|
||||
self._spec_property_naming = _spec_property_naming
|
||||
self._path_to_item = _path_to_item
|
||||
self._configuration = _configuration
|
||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
self._configuration.discard_unknown_keys and \
|
||||
self.additional_properties_type is None:
|
||||
# discard variable.
|
||||
continue
|
||||
setattr(self, var_name, var_value)
|
||||
@@ -1,171 +0,0 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
ModelNormal,
|
||||
ModelSimple,
|
||||
cached_property,
|
||||
change_keys_js_to_python,
|
||||
convert_js_args_to_python_args,
|
||||
date,
|
||||
datetime,
|
||||
file_type,
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
|
||||
|
||||
class InlineObject1(ModelNormal):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
Attributes:
|
||||
allowed_values (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
with a capitalized key describing the allowed value and an allowed
|
||||
value. These dicts store the allowed enum values.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||
variable value to the discriminator class name.
|
||||
validations (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
that stores validations for max_length, min_length, max_items,
|
||||
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||
inclusive_minimum, and regex.
|
||||
additional_properties_type (tuple): A tuple of classes accepted
|
||||
as additional properties values.
|
||||
"""
|
||||
|
||||
allowed_values = {
|
||||
}
|
||||
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = None
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
return {
|
||||
'additional_metadata': (str,), # noqa: E501
|
||||
'file': (file_type,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'additional_metadata': 'additionalMetadata', # noqa: E501
|
||||
'file': 'file', # noqa: E501
|
||||
}
|
||||
|
||||
_composed_schemas = {}
|
||||
|
||||
required_properties = set([
|
||||
'_data_store',
|
||||
'_check_type',
|
||||
'_spec_property_naming',
|
||||
'_path_to_item',
|
||||
'_configuration',
|
||||
'_visited_composed_classes',
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""InlineObject1 - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
Defaults to True
|
||||
_path_to_item (tuple/list): This is a list of keys or values to
|
||||
drill down to the model in received_data
|
||||
when deserializing a response
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_configuration (Configuration): the instance to use when
|
||||
deserializing a file_type parameter.
|
||||
If passed, type conversion is attempted
|
||||
If omitted no type conversion is done.
|
||||
_visited_composed_classes (tuple): This stores a tuple of
|
||||
classes that we have traveled through so that
|
||||
if we see that class again we will not use its
|
||||
discriminator again.
|
||||
When traveling through a discriminator, the
|
||||
composed schema that is
|
||||
is traveled through is added to this set.
|
||||
For example if Animal has a discriminator
|
||||
petType and we pass in "Dog", and the class Dog
|
||||
allOf includes Animal, we move through Animal
|
||||
once using the discriminator, and pick Dog.
|
||||
Then in Dog, we will make an instance of the
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
additional_metadata (str): Additional data to pass to server. [optional] # noqa: E501
|
||||
file (file_type): file to upload. [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
_configuration = kwargs.pop('_configuration', None)
|
||||
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||
|
||||
if args:
|
||||
raise ApiTypeError(
|
||||
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||
args,
|
||||
self.__class__.__name__,
|
||||
),
|
||||
path_to_item=_path_to_item,
|
||||
valid_classes=(self.__class__,),
|
||||
)
|
||||
|
||||
self._data_store = {}
|
||||
self._check_type = _check_type
|
||||
self._spec_property_naming = _spec_property_naming
|
||||
self._path_to_item = _path_to_item
|
||||
self._configuration = _configuration
|
||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
self._configuration.discard_unknown_keys and \
|
||||
self.additional_properties_type is None:
|
||||
# discard variable.
|
||||
continue
|
||||
setattr(self, var_name, var_value)
|
||||
@@ -1,180 +0,0 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
ModelNormal,
|
||||
ModelSimple,
|
||||
cached_property,
|
||||
change_keys_js_to_python,
|
||||
convert_js_args_to_python_args,
|
||||
date,
|
||||
datetime,
|
||||
file_type,
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
|
||||
|
||||
class InlineObject2(ModelNormal):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
Attributes:
|
||||
allowed_values (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
with a capitalized key describing the allowed value and an allowed
|
||||
value. These dicts store the allowed enum values.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||
variable value to the discriminator class name.
|
||||
validations (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
that stores validations for max_length, min_length, max_items,
|
||||
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||
inclusive_minimum, and regex.
|
||||
additional_properties_type (tuple): A tuple of classes accepted
|
||||
as additional properties values.
|
||||
"""
|
||||
|
||||
allowed_values = {
|
||||
('enum_form_string_array',): {
|
||||
'>': ">",
|
||||
'$': "$",
|
||||
},
|
||||
('enum_form_string',): {
|
||||
'_ABC': "_abc",
|
||||
'-EFG': "-efg",
|
||||
'(XYZ)': "(xyz)",
|
||||
},
|
||||
}
|
||||
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = None
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
return {
|
||||
'enum_form_string_array': ([str],), # noqa: E501
|
||||
'enum_form_string': (str,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'enum_form_string_array': 'enum_form_string_array', # noqa: E501
|
||||
'enum_form_string': 'enum_form_string', # noqa: E501
|
||||
}
|
||||
|
||||
_composed_schemas = {}
|
||||
|
||||
required_properties = set([
|
||||
'_data_store',
|
||||
'_check_type',
|
||||
'_spec_property_naming',
|
||||
'_path_to_item',
|
||||
'_configuration',
|
||||
'_visited_composed_classes',
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""InlineObject2 - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
Defaults to True
|
||||
_path_to_item (tuple/list): This is a list of keys or values to
|
||||
drill down to the model in received_data
|
||||
when deserializing a response
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_configuration (Configuration): the instance to use when
|
||||
deserializing a file_type parameter.
|
||||
If passed, type conversion is attempted
|
||||
If omitted no type conversion is done.
|
||||
_visited_composed_classes (tuple): This stores a tuple of
|
||||
classes that we have traveled through so that
|
||||
if we see that class again we will not use its
|
||||
discriminator again.
|
||||
When traveling through a discriminator, the
|
||||
composed schema that is
|
||||
is traveled through is added to this set.
|
||||
For example if Animal has a discriminator
|
||||
petType and we pass in "Dog", and the class Dog
|
||||
allOf includes Animal, we move through Animal
|
||||
once using the discriminator, and pick Dog.
|
||||
Then in Dog, we will make an instance of the
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
enum_form_string_array ([str]): Form parameter enum test (string array). [optional] # noqa: E501
|
||||
enum_form_string (str): Form parameter enum test (string). [optional] if omitted the server will use the default value of "-efg" # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
_configuration = kwargs.pop('_configuration', None)
|
||||
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||
|
||||
if args:
|
||||
raise ApiTypeError(
|
||||
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||
args,
|
||||
self.__class__.__name__,
|
||||
),
|
||||
path_to_item=_path_to_item,
|
||||
valid_classes=(self.__class__,),
|
||||
)
|
||||
|
||||
self._data_store = {}
|
||||
self._check_type = _check_type
|
||||
self._spec_property_naming = _spec_property_naming
|
||||
self._path_to_item = _path_to_item
|
||||
self._configuration = _configuration
|
||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
self._configuration.discard_unknown_keys and \
|
||||
self.additional_properties_type is None:
|
||||
# discard variable.
|
||||
continue
|
||||
setattr(self, var_name, var_value)
|
||||
@@ -1,247 +0,0 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
ModelNormal,
|
||||
ModelSimple,
|
||||
cached_property,
|
||||
change_keys_js_to_python,
|
||||
convert_js_args_to_python_args,
|
||||
date,
|
||||
datetime,
|
||||
file_type,
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
|
||||
|
||||
class InlineObject3(ModelNormal):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
Attributes:
|
||||
allowed_values (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
with a capitalized key describing the allowed value and an allowed
|
||||
value. These dicts store the allowed enum values.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||
variable value to the discriminator class name.
|
||||
validations (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
that stores validations for max_length, min_length, max_items,
|
||||
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||
inclusive_minimum, and regex.
|
||||
additional_properties_type (tuple): A tuple of classes accepted
|
||||
as additional properties values.
|
||||
"""
|
||||
|
||||
allowed_values = {
|
||||
}
|
||||
|
||||
validations = {
|
||||
('number',): {
|
||||
'inclusive_maximum': 543.2,
|
||||
'inclusive_minimum': 32.1,
|
||||
},
|
||||
('double',): {
|
||||
'inclusive_maximum': 123.4,
|
||||
'inclusive_minimum': 67.8,
|
||||
},
|
||||
('pattern_without_delimiter',): {
|
||||
'regex': {
|
||||
'pattern': r'^[A-Z].*', # noqa: E501
|
||||
},
|
||||
},
|
||||
('integer',): {
|
||||
'inclusive_maximum': 100,
|
||||
'inclusive_minimum': 10,
|
||||
},
|
||||
('int32',): {
|
||||
'inclusive_maximum': 200,
|
||||
'inclusive_minimum': 20,
|
||||
},
|
||||
('float',): {
|
||||
'inclusive_maximum': 987.6,
|
||||
},
|
||||
('string',): {
|
||||
'regex': {
|
||||
'pattern': r'[a-z]', # noqa: E501
|
||||
'flags': (re.IGNORECASE)
|
||||
},
|
||||
},
|
||||
('password',): {
|
||||
'max_length': 64,
|
||||
'min_length': 10,
|
||||
},
|
||||
}
|
||||
|
||||
additional_properties_type = None
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
return {
|
||||
'number': (float,), # noqa: E501
|
||||
'double': (float,), # noqa: E501
|
||||
'pattern_without_delimiter': (str,), # noqa: E501
|
||||
'byte': (str,), # noqa: E501
|
||||
'integer': (int,), # noqa: E501
|
||||
'int32': (int,), # noqa: E501
|
||||
'int64': (int,), # noqa: E501
|
||||
'float': (float,), # noqa: E501
|
||||
'string': (str,), # noqa: E501
|
||||
'binary': (file_type,), # noqa: E501
|
||||
'date': (date,), # noqa: E501
|
||||
'date_time': (datetime,), # noqa: E501
|
||||
'password': (str,), # noqa: E501
|
||||
'callback': (str,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'number': 'number', # noqa: E501
|
||||
'double': 'double', # noqa: E501
|
||||
'pattern_without_delimiter': 'pattern_without_delimiter', # noqa: E501
|
||||
'byte': 'byte', # noqa: E501
|
||||
'integer': 'integer', # noqa: E501
|
||||
'int32': 'int32', # noqa: E501
|
||||
'int64': 'int64', # noqa: E501
|
||||
'float': 'float', # noqa: E501
|
||||
'string': 'string', # noqa: E501
|
||||
'binary': 'binary', # noqa: E501
|
||||
'date': 'date', # noqa: E501
|
||||
'date_time': 'dateTime', # noqa: E501
|
||||
'password': 'password', # noqa: E501
|
||||
'callback': 'callback', # noqa: E501
|
||||
}
|
||||
|
||||
_composed_schemas = {}
|
||||
|
||||
required_properties = set([
|
||||
'_data_store',
|
||||
'_check_type',
|
||||
'_spec_property_naming',
|
||||
'_path_to_item',
|
||||
'_configuration',
|
||||
'_visited_composed_classes',
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, number, double, pattern_without_delimiter, byte, *args, **kwargs): # noqa: E501
|
||||
"""InlineObject3 - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
number (float): None
|
||||
double (float): None
|
||||
pattern_without_delimiter (str): None
|
||||
byte (str): None
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
Defaults to True
|
||||
_path_to_item (tuple/list): This is a list of keys or values to
|
||||
drill down to the model in received_data
|
||||
when deserializing a response
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_configuration (Configuration): the instance to use when
|
||||
deserializing a file_type parameter.
|
||||
If passed, type conversion is attempted
|
||||
If omitted no type conversion is done.
|
||||
_visited_composed_classes (tuple): This stores a tuple of
|
||||
classes that we have traveled through so that
|
||||
if we see that class again we will not use its
|
||||
discriminator again.
|
||||
When traveling through a discriminator, the
|
||||
composed schema that is
|
||||
is traveled through is added to this set.
|
||||
For example if Animal has a discriminator
|
||||
petType and we pass in "Dog", and the class Dog
|
||||
allOf includes Animal, we move through Animal
|
||||
once using the discriminator, and pick Dog.
|
||||
Then in Dog, we will make an instance of the
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
integer (int): None. [optional] # noqa: E501
|
||||
int32 (int): None. [optional] # noqa: E501
|
||||
int64 (int): None. [optional] # noqa: E501
|
||||
float (float): None. [optional] # noqa: E501
|
||||
string (str): None. [optional] # noqa: E501
|
||||
binary (file_type): None. [optional] # noqa: E501
|
||||
date (date): None. [optional] # noqa: E501
|
||||
date_time (datetime): None. [optional] if omitted the server will use the default value of dateutil_parser('2010-02-01T10:20:10.11111+01:00') # noqa: E501
|
||||
password (str): None. [optional] # noqa: E501
|
||||
callback (str): None. [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
_configuration = kwargs.pop('_configuration', None)
|
||||
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||
|
||||
if args:
|
||||
raise ApiTypeError(
|
||||
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||
args,
|
||||
self.__class__.__name__,
|
||||
),
|
||||
path_to_item=_path_to_item,
|
||||
valid_classes=(self.__class__,),
|
||||
)
|
||||
|
||||
self._data_store = {}
|
||||
self._check_type = _check_type
|
||||
self._spec_property_naming = _spec_property_naming
|
||||
self._path_to_item = _path_to_item
|
||||
self._configuration = _configuration
|
||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||
|
||||
self.number = number
|
||||
self.double = double
|
||||
self.pattern_without_delimiter = pattern_without_delimiter
|
||||
self.byte = byte
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
self._configuration.discard_unknown_keys and \
|
||||
self.additional_properties_type is None:
|
||||
# discard variable.
|
||||
continue
|
||||
setattr(self, var_name, var_value)
|
||||
@@ -1,175 +0,0 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
ModelNormal,
|
||||
ModelSimple,
|
||||
cached_property,
|
||||
change_keys_js_to_python,
|
||||
convert_js_args_to_python_args,
|
||||
date,
|
||||
datetime,
|
||||
file_type,
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
|
||||
|
||||
class InlineObject4(ModelNormal):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
Attributes:
|
||||
allowed_values (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
with a capitalized key describing the allowed value and an allowed
|
||||
value. These dicts store the allowed enum values.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||
variable value to the discriminator class name.
|
||||
validations (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
that stores validations for max_length, min_length, max_items,
|
||||
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||
inclusive_minimum, and regex.
|
||||
additional_properties_type (tuple): A tuple of classes accepted
|
||||
as additional properties values.
|
||||
"""
|
||||
|
||||
allowed_values = {
|
||||
}
|
||||
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = None
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
return {
|
||||
'param': (str,), # noqa: E501
|
||||
'param2': (str,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'param': 'param', # noqa: E501
|
||||
'param2': 'param2', # noqa: E501
|
||||
}
|
||||
|
||||
_composed_schemas = {}
|
||||
|
||||
required_properties = set([
|
||||
'_data_store',
|
||||
'_check_type',
|
||||
'_spec_property_naming',
|
||||
'_path_to_item',
|
||||
'_configuration',
|
||||
'_visited_composed_classes',
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, param, param2, *args, **kwargs): # noqa: E501
|
||||
"""InlineObject4 - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
param (str): field1
|
||||
param2 (str): field2
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
Defaults to True
|
||||
_path_to_item (tuple/list): This is a list of keys or values to
|
||||
drill down to the model in received_data
|
||||
when deserializing a response
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_configuration (Configuration): the instance to use when
|
||||
deserializing a file_type parameter.
|
||||
If passed, type conversion is attempted
|
||||
If omitted no type conversion is done.
|
||||
_visited_composed_classes (tuple): This stores a tuple of
|
||||
classes that we have traveled through so that
|
||||
if we see that class again we will not use its
|
||||
discriminator again.
|
||||
When traveling through a discriminator, the
|
||||
composed schema that is
|
||||
is traveled through is added to this set.
|
||||
For example if Animal has a discriminator
|
||||
petType and we pass in "Dog", and the class Dog
|
||||
allOf includes Animal, we move through Animal
|
||||
once using the discriminator, and pick Dog.
|
||||
Then in Dog, we will make an instance of the
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
_configuration = kwargs.pop('_configuration', None)
|
||||
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||
|
||||
if args:
|
||||
raise ApiTypeError(
|
||||
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||
args,
|
||||
self.__class__.__name__,
|
||||
),
|
||||
path_to_item=_path_to_item,
|
||||
valid_classes=(self.__class__,),
|
||||
)
|
||||
|
||||
self._data_store = {}
|
||||
self._check_type = _check_type
|
||||
self._spec_property_naming = _spec_property_naming
|
||||
self._path_to_item = _path_to_item
|
||||
self._configuration = _configuration
|
||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||
|
||||
self.param = param
|
||||
self.param2 = param2
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
self._configuration.discard_unknown_keys and \
|
||||
self.additional_properties_type is None:
|
||||
# discard variable.
|
||||
continue
|
||||
setattr(self, var_name, var_value)
|
||||
@@ -1,174 +0,0 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
ModelNormal,
|
||||
ModelSimple,
|
||||
cached_property,
|
||||
change_keys_js_to_python,
|
||||
convert_js_args_to_python_args,
|
||||
date,
|
||||
datetime,
|
||||
file_type,
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
|
||||
|
||||
class InlineObject5(ModelNormal):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
Attributes:
|
||||
allowed_values (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
with a capitalized key describing the allowed value and an allowed
|
||||
value. These dicts store the allowed enum values.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||
variable value to the discriminator class name.
|
||||
validations (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
that stores validations for max_length, min_length, max_items,
|
||||
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||
inclusive_minimum, and regex.
|
||||
additional_properties_type (tuple): A tuple of classes accepted
|
||||
as additional properties values.
|
||||
"""
|
||||
|
||||
allowed_values = {
|
||||
}
|
||||
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = None
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
return {
|
||||
'required_file': (file_type,), # noqa: E501
|
||||
'additional_metadata': (str,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'required_file': 'requiredFile', # noqa: E501
|
||||
'additional_metadata': 'additionalMetadata', # noqa: E501
|
||||
}
|
||||
|
||||
_composed_schemas = {}
|
||||
|
||||
required_properties = set([
|
||||
'_data_store',
|
||||
'_check_type',
|
||||
'_spec_property_naming',
|
||||
'_path_to_item',
|
||||
'_configuration',
|
||||
'_visited_composed_classes',
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, required_file, *args, **kwargs): # noqa: E501
|
||||
"""InlineObject5 - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
required_file (file_type): file to upload
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
Defaults to True
|
||||
_path_to_item (tuple/list): This is a list of keys or values to
|
||||
drill down to the model in received_data
|
||||
when deserializing a response
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_configuration (Configuration): the instance to use when
|
||||
deserializing a file_type parameter.
|
||||
If passed, type conversion is attempted
|
||||
If omitted no type conversion is done.
|
||||
_visited_composed_classes (tuple): This stores a tuple of
|
||||
classes that we have traveled through so that
|
||||
if we see that class again we will not use its
|
||||
discriminator again.
|
||||
When traveling through a discriminator, the
|
||||
composed schema that is
|
||||
is traveled through is added to this set.
|
||||
For example if Animal has a discriminator
|
||||
petType and we pass in "Dog", and the class Dog
|
||||
allOf includes Animal, we move through Animal
|
||||
once using the discriminator, and pick Dog.
|
||||
Then in Dog, we will make an instance of the
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
additional_metadata (str): Additional data to pass to server. [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
_configuration = kwargs.pop('_configuration', None)
|
||||
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||
|
||||
if args:
|
||||
raise ApiTypeError(
|
||||
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||
args,
|
||||
self.__class__.__name__,
|
||||
),
|
||||
path_to_item=_path_to_item,
|
||||
valid_classes=(self.__class__,),
|
||||
)
|
||||
|
||||
self._data_store = {}
|
||||
self._check_type = _check_type
|
||||
self._spec_property_naming = _spec_property_naming
|
||||
self._path_to_item = _path_to_item
|
||||
self._configuration = _configuration
|
||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||
|
||||
self.required_file = required_file
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
self._configuration.discard_unknown_keys and \
|
||||
self.additional_properties_type is None:
|
||||
# discard variable.
|
||||
continue
|
||||
setattr(self, var_name, var_value)
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -182,11 +180,6 @@ class IsoscelesTriangle(ModelComposed):
|
||||
'shape_type': shape_type,
|
||||
'triangle_type': triangle_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -208,11 +206,6 @@ class Mammal(ModelComposed):
|
||||
required_args = {
|
||||
'class_name': class_name,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -130,8 +128,6 @@ class NullableShape(ModelComposed):
|
||||
shape_type (str):
|
||||
|
||||
Keyword Args:
|
||||
quadrilateral_type (str): defaults to nulltype.Null # noqa: E501
|
||||
triangle_type (str): defaults to nulltype.Null # noqa: E501
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
@@ -162,10 +158,10 @@ class NullableShape(ModelComposed):
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
quadrilateral_type (str): [optional] # noqa: E501
|
||||
triangle_type (str): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
quadrilateral_type = kwargs.get('quadrilateral_type', nulltype.Null)
|
||||
triangle_type = kwargs.get('triangle_type', nulltype.Null)
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
@@ -198,14 +194,7 @@ class NullableShape(ModelComposed):
|
||||
}
|
||||
required_args = {
|
||||
'shape_type': shape_type,
|
||||
'quadrilateral_type': quadrilateral_type,
|
||||
'triangle_type': triangle_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -190,11 +188,6 @@ class ParentPet(ModelComposed):
|
||||
required_args = {
|
||||
'pet_type': pet_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -191,11 +189,6 @@ class Pig(ModelComposed):
|
||||
required_args = {
|
||||
'class_name': class_name,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -88,8 +86,8 @@ class Quadrilateral(ModelComposed):
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'shape_type': (str,), # noqa: E501
|
||||
'quadrilateral_type': (str,), # noqa: E501
|
||||
'shape_type': (str,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@@ -104,8 +102,8 @@ class Quadrilateral(ModelComposed):
|
||||
return {'quadrilateral_type': val}
|
||||
|
||||
attribute_map = {
|
||||
'shape_type': 'shapeType', # noqa: E501
|
||||
'quadrilateral_type': 'quadrilateralType', # noqa: E501
|
||||
'shape_type': 'shapeType', # noqa: E501
|
||||
}
|
||||
|
||||
required_properties = set([
|
||||
@@ -128,7 +126,6 @@ class Quadrilateral(ModelComposed):
|
||||
quadrilateral_type (str):
|
||||
|
||||
Keyword Args:
|
||||
shape_type (str): defaults to nulltype.Null # noqa: E501
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
@@ -159,9 +156,9 @@ class Quadrilateral(ModelComposed):
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
shape_type (str): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
shape_type = kwargs.get('shape_type', nulltype.Null)
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
@@ -193,14 +190,8 @@ class Quadrilateral(ModelComposed):
|
||||
'_visited_composed_classes': self._visited_composed_classes,
|
||||
}
|
||||
required_args = {
|
||||
'shape_type': shape_type,
|
||||
'quadrilateral_type': quadrilateral_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -189,11 +187,6 @@ class ScaleneTriangle(ModelComposed):
|
||||
'shape_type': shape_type,
|
||||
'triangle_type': triangle_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -130,8 +128,6 @@ class Shape(ModelComposed):
|
||||
shape_type (str):
|
||||
|
||||
Keyword Args:
|
||||
quadrilateral_type (str): defaults to nulltype.Null # noqa: E501
|
||||
triangle_type (str): defaults to nulltype.Null # noqa: E501
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
@@ -162,10 +158,10 @@ class Shape(ModelComposed):
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
quadrilateral_type (str): [optional] # noqa: E501
|
||||
triangle_type (str): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
quadrilateral_type = kwargs.get('quadrilateral_type', nulltype.Null)
|
||||
triangle_type = kwargs.get('triangle_type', nulltype.Null)
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
@@ -198,14 +194,7 @@ class Shape(ModelComposed):
|
||||
}
|
||||
required_args = {
|
||||
'shape_type': shape_type,
|
||||
'quadrilateral_type': quadrilateral_type,
|
||||
'triangle_type': triangle_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -130,8 +128,6 @@ class ShapeOrNull(ModelComposed):
|
||||
shape_type (str):
|
||||
|
||||
Keyword Args:
|
||||
quadrilateral_type (str): defaults to nulltype.Null # noqa: E501
|
||||
triangle_type (str): defaults to nulltype.Null # noqa: E501
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
@@ -162,10 +158,10 @@ class ShapeOrNull(ModelComposed):
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
quadrilateral_type (str): [optional] # noqa: E501
|
||||
triangle_type (str): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
quadrilateral_type = kwargs.get('quadrilateral_type', nulltype.Null)
|
||||
triangle_type = kwargs.get('triangle_type', nulltype.Null)
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
@@ -198,14 +194,7 @@ class ShapeOrNull(ModelComposed):
|
||||
}
|
||||
required_args = {
|
||||
'shape_type': shape_type,
|
||||
'quadrilateral_type': quadrilateral_type,
|
||||
'triangle_type': triangle_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -189,11 +187,6 @@ class SimpleQuadrilateral(ModelComposed):
|
||||
'shape_type': shape_type,
|
||||
'quadrilateral_type': quadrilateral_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -177,11 +175,6 @@ class SomeObject(ModelComposed):
|
||||
}
|
||||
required_args = {
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
@@ -90,8 +88,8 @@ class Triangle(ModelComposed):
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'shape_type': (str,), # noqa: E501
|
||||
'triangle_type': (str,), # noqa: E501
|
||||
'shape_type': (str,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@@ -107,8 +105,8 @@ class Triangle(ModelComposed):
|
||||
return {'triangle_type': val}
|
||||
|
||||
attribute_map = {
|
||||
'shape_type': 'shapeType', # noqa: E501
|
||||
'triangle_type': 'triangleType', # noqa: E501
|
||||
'shape_type': 'shapeType', # noqa: E501
|
||||
}
|
||||
|
||||
required_properties = set([
|
||||
@@ -131,7 +129,6 @@ class Triangle(ModelComposed):
|
||||
triangle_type (str):
|
||||
|
||||
Keyword Args:
|
||||
shape_type (str): defaults to nulltype.Null # noqa: E501
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
@@ -162,9 +159,9 @@ class Triangle(ModelComposed):
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
shape_type (str): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
shape_type = kwargs.get('shape_type', nulltype.Null)
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
@@ -196,14 +193,8 @@ class Triangle(ModelComposed):
|
||||
'_visited_composed_classes': self._visited_composed_classes,
|
||||
}
|
||||
required_args = {
|
||||
'shape_type': shape_type,
|
||||
'triangle_type': triangle_type,
|
||||
}
|
||||
# remove args whose value is Null because they are unset
|
||||
required_arg_names = list(required_args.keys())
|
||||
for required_arg_name in required_arg_names:
|
||||
if required_args[required_arg_name] is nulltype.Null:
|
||||
del required_args[required_arg_name]
|
||||
model_args = {}
|
||||
model_args.update(required_args)
|
||||
model_args.update(kwargs)
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
nulltype
|
||||
python_dateutil >= 2.5.3
|
||||
setuptools >= 21.0.0
|
||||
urllib3 >= 1.25.3
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user