forked from loafle/openapi-generator-original
[python] Adds python oneOf/anyOf models + tests (#5341)
* Adds oneOf + anyOf schemas, models and tests to python-experimental * Adds setUpClass and tearDownClass * Removes newline in method_init_shared.mustache * Regenerated v3 spec sample for python-experimental * Fxes test for discard_unknown_keys * Moves new models into existing spec, regen python-exp and go-exp * Also fix python-exp windows file
This commit is contained in:
@@ -5,6 +5,6 @@ If Not Exist %executable% (
|
||||
)
|
||||
|
||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
||||
set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g python-experimental -o samples\openapi3\client\petstore\python-experimental --additional-properties packageName=petstore_api
|
||||
set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml -g python-experimental -o samples\openapi3\client\petstore\python-experimental --additional-properties packageName=petstore_api
|
||||
|
||||
java %JAVA_OPTS% -jar %executable% %ags%
|
||||
|
||||
@@ -706,6 +706,56 @@ public class PythonClientExperimentalCodegen extends PythonClientCodegen {
|
||||
}
|
||||
}
|
||||
|
||||
private void addNullDefaultToOneOfAnyOfReqProps(Schema schema, CodegenModel result){
|
||||
// for composed schema models, if the required properties are only from oneOf or anyOf models
|
||||
// give them a nulltype.Null so the user can omit including them in python
|
||||
ComposedSchema cs = (ComposedSchema) schema;
|
||||
|
||||
// these are the properties that are from properties in self cs or cs allOf
|
||||
Map<String, Schema> selfProperties = new LinkedHashMap<String, Schema>();
|
||||
List<String> selfRequired = new ArrayList<String>();
|
||||
|
||||
// these are the properties that are from properties in cs oneOf or cs anyOf
|
||||
Map<String, Schema> otherProperties = new LinkedHashMap<String, Schema>();
|
||||
List<String> otherRequired = new ArrayList<String>();
|
||||
|
||||
List<Schema> oneOfanyOfSchemas = new ArrayList<>();
|
||||
List<Schema> oneOf = cs.getOneOf();
|
||||
if (oneOf != null) {
|
||||
oneOfanyOfSchemas.addAll(oneOf);
|
||||
}
|
||||
List<Schema> anyOf = cs.getAnyOf();
|
||||
if (anyOf != null) {
|
||||
oneOfanyOfSchemas.addAll(anyOf);
|
||||
}
|
||||
for (Schema sc: oneOfanyOfSchemas) {
|
||||
Schema refSchema = ModelUtils.getReferencedSchema(this.openAPI, sc);
|
||||
addProperties(otherProperties, otherRequired, refSchema);
|
||||
}
|
||||
Set<String> otherRequiredSet = new HashSet<String>(otherRequired);
|
||||
|
||||
List<Schema> allOf = cs.getAllOf();
|
||||
if ((schema.getProperties() != null && !schema.getProperties().isEmpty()) || allOf != null) {
|
||||
// NOTE: this function also adds the allOf propesrties inside schema
|
||||
addProperties(selfProperties, selfRequired, schema);
|
||||
}
|
||||
if (result.discriminator != null) {
|
||||
selfRequired.add(result.discriminator.getPropertyBaseName());
|
||||
}
|
||||
Set<String> selfRequiredSet = new HashSet<String>(selfRequired);
|
||||
|
||||
List<CodegenProperty> reqVars = result.getRequiredVars();
|
||||
if (reqVars != null) {
|
||||
for (CodegenProperty cp: reqVars) {
|
||||
String propName = cp.baseName;
|
||||
if (otherRequiredSet.contains(propName) && !selfRequiredSet.contains(propName)) {
|
||||
// if var is in otherRequiredSet and is not in selfRequiredSet and is in result.requiredVars
|
||||
// then set it to nullable because the user doesn't have to give a value for it
|
||||
cp.setDefaultValue("nulltype.Null");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert OAS Model object to Codegen Model object
|
||||
@@ -806,6 +856,11 @@ public class PythonClientExperimentalCodegen extends PythonClientCodegen {
|
||||
if (result.imports.contains(result.classname)) {
|
||||
result.imports.remove(result.classname);
|
||||
}
|
||||
|
||||
if (result.requiredVars.size() > 0 && (result.oneOf.size() > 0 || result.anyOf.size() > 0)) {
|
||||
addNullDefaultToOneOfAnyOfReqProps(schema, result);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from {{packageName}}.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -17,11 +17,18 @@
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
required_args = {
|
||||
{{#requiredVars}}
|
||||
'{{name}}': {{name}},
|
||||
{{/requiredVars}}
|
||||
}
|
||||
# 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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -30,9 +37,8 @@
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
{{#requiredVars}}
|
||||
self.{{name}} = {{name}}
|
||||
{{/requiredVars}}
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -1,11 +1,23 @@
|
||||
def __init__(self{{#requiredVars}}{{^defaultValue}}, {{name}}{{/defaultValue}}{{/requiredVars}}{{#requiredVars}}{{#defaultValue}}, {{name}}={{{defaultValue}}}{{/defaultValue}}{{/requiredVars}}, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""{{classname}} - a model defined in OpenAPI
|
||||
|
||||
{{#requiredVars}}{{^hasMore}} Args:{{/hasMore}}{{/requiredVars}}{{#requiredVars}}{{^defaultValue}}
|
||||
{{name}} ({{{dataType}}}):{{#description}} {{description}}{{/description}}{{/defaultValue}}{{/requiredVars}}{{#requiredVars}}{{^hasMore}}
|
||||
{{/hasMore}}{{/requiredVars}}
|
||||
Keyword Args:{{#requiredVars}}{{#defaultValue}}
|
||||
{{name}} ({{{dataType}}}):{{#description}} {{description}}.{{/description}} defaults to {{{defaultValue}}}, must be one of [{{{defaultValue}}}] # noqa: E501{{/defaultValue}}{{/requiredVars}}
|
||||
{{#requiredVars}}
|
||||
{{#-first}}
|
||||
Args:
|
||||
{{/-first}}
|
||||
{{^defaultValue}}
|
||||
{{name}} ({{{dataType}}}):{{#description}} {{description}}{{/description}}
|
||||
{{/defaultValue}}
|
||||
{{#-last}}
|
||||
|
||||
{{/-last}}
|
||||
{{/requiredVars}}
|
||||
Keyword Args:
|
||||
{{#requiredVars}}
|
||||
{{#defaultValue}}
|
||||
{{name}} ({{{dataType}}}):{{#description}} {{description}}.{{/description}} defaults to {{{defaultValue}}}{{#allowableValues}}, must be one of [{{#enumVars}}{{{value}}}, {{/enumVars}}]{{/allowableValues}} # noqa: E501
|
||||
{{/defaultValue}}
|
||||
{{/requiredVars}}
|
||||
_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.
|
||||
@@ -18,8 +30,10 @@
|
||||
_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.{{#optionalVars}}
|
||||
{{name}} ({{{dataType}}}):{{#description}} {{description}}.{{/description}} [optional]{{#defaultValue}} if omitted the server will use the default value of {{{defaultValue}}}{{/defaultValue}} # noqa: E501{{/optionalVars}}
|
||||
If omitted no type conversion is done.
|
||||
{{#optionalVars}}
|
||||
{{name}} ({{{dataType}}}):{{#description}} {{description}}.{{/description}} [optional]{{#defaultValue}} if omitted the server will use the default value of {{{defaultValue}}}{{/defaultValue}} # noqa: E501
|
||||
{{/optionalVars}}
|
||||
"""
|
||||
|
||||
self._data_store = {}
|
||||
|
||||
@@ -41,21 +41,23 @@
|
||||
if self._path_to_item:
|
||||
path_to_item.extend(self._path_to_item)
|
||||
path_to_item.append(name)
|
||||
values = set()
|
||||
if model_instances:
|
||||
values = set()
|
||||
for model_instance in model_instances:
|
||||
if name in model_instance._data_store:
|
||||
values.add(model_instance._data_store[name])
|
||||
if len(values) == 1:
|
||||
return list(values)[0]
|
||||
len_values = len(values)
|
||||
if len_values == 0:
|
||||
raise ApiKeyError(
|
||||
"{0} has no key '{1}'".format(type(self).__name__, name),
|
||||
path_to_item
|
||||
)
|
||||
elif len_values == 1:
|
||||
return list(values)[0]
|
||||
elif len_values > 1:
|
||||
raise ApiValueError(
|
||||
"Values stored for property {0} in {1} difffer when looking "
|
||||
"at self and self's composed instances. All values must be "
|
||||
"the same".format(name, type(self).__name__),
|
||||
path_to_item
|
||||
)
|
||||
|
||||
raise ApiKeyError(
|
||||
"{0} has no key '{1}'".format(type(self).__name__, name),
|
||||
path_to_item
|
||||
)
|
||||
)
|
||||
@@ -828,7 +828,7 @@ def model_to_dict(model_instance, serialize=True):
|
||||
|
||||
model_instances = [model_instance]
|
||||
if model_instance._composed_schemas() is not None:
|
||||
model_instances = model_instance._composed_instances
|
||||
model_instances.extend(model_instance._composed_instances)
|
||||
for model_instance in model_instances:
|
||||
for attr, value in six.iteritems(model_instance._data_store):
|
||||
if serialize:
|
||||
@@ -951,12 +951,12 @@ def get_oneof_instance(self, model_args, constant_args):
|
||||
used to make instances
|
||||
|
||||
Returns
|
||||
oneof_instance (instance)
|
||||
oneof_instance (instance/None)
|
||||
"""
|
||||
oneof_instance = None
|
||||
if len(self._composed_schemas()['oneOf']) == 0:
|
||||
return oneof_instance
|
||||
return None
|
||||
|
||||
oneof_instances = []
|
||||
for oneof_class in self._composed_schemas()['oneOf']:
|
||||
# transform js keys to python keys in fixed_model_args
|
||||
fixed_model_args = change_keys_js_to_python(
|
||||
@@ -969,20 +969,30 @@ def get_oneof_instance(self, model_args, constant_args):
|
||||
if var_name in fixed_model_args:
|
||||
kwargs[var_name] = fixed_model_args[var_name]
|
||||
|
||||
# do not try to make a model with no input args
|
||||
if len(kwargs) == 0:
|
||||
continue
|
||||
|
||||
# and use it to make the instance
|
||||
kwargs.update(constant_args)
|
||||
try:
|
||||
oneof_instance = oneof_class(**kwargs)
|
||||
break
|
||||
oneof_instances.append(oneof_instance)
|
||||
except Exception:
|
||||
pass
|
||||
if oneof_instance is None:
|
||||
if len(oneof_instances) == 0:
|
||||
raise ApiValueError(
|
||||
"Invalid inputs given to generate an instance of %s. Unable to "
|
||||
"make any instances of the classes in oneOf definition." %
|
||||
self.__class__.__name__
|
||||
)
|
||||
return oneof_instance
|
||||
elif len(oneof_instances) > 1:
|
||||
raise ApiValueError(
|
||||
"Invalid inputs given to generate an instance of %s. Multiple "
|
||||
"oneOf instances were generated when a max of one is allowed." %
|
||||
self.__class__.__name__
|
||||
)
|
||||
return oneof_instances[0]
|
||||
|
||||
|
||||
def get_anyof_instances(self, model_args, constant_args):
|
||||
@@ -1012,6 +1022,10 @@ def get_anyof_instances(self, model_args, constant_args):
|
||||
if var_name in fixed_model_args:
|
||||
kwargs[var_name] = fixed_model_args[var_name]
|
||||
|
||||
# do not try to make a model with no input args
|
||||
if len(kwargs) == 0:
|
||||
continue
|
||||
|
||||
# and use it to make the instance
|
||||
kwargs.update(constant_args)
|
||||
try:
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
nulltype
|
||||
certifi >= 14.05.14
|
||||
future; python_version<="2.7"
|
||||
six >= 1.10
|
||||
|
||||
@@ -21,6 +21,7 @@ REQUIRES = [
|
||||
"six >= 1.10",
|
||||
"certifi",
|
||||
"python-dateutil",
|
||||
"nulltype",
|
||||
{{#asyncio}}
|
||||
"aiohttp >= 3.0.0",
|
||||
{{/asyncio}}
|
||||
|
||||
@@ -1779,3 +1779,82 @@ components:
|
||||
additionalProperties:
|
||||
type: object
|
||||
nullable: true
|
||||
fruit:
|
||||
properties:
|
||||
color:
|
||||
type: string
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/apple'
|
||||
- $ref: '#/components/schemas/banana'
|
||||
apple:
|
||||
type: object
|
||||
properties:
|
||||
cultivar:
|
||||
type: string
|
||||
banana:
|
||||
type: object
|
||||
properties:
|
||||
lengthCm:
|
||||
type: number
|
||||
mammal:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/whale'
|
||||
- $ref: '#/components/schemas/zebra'
|
||||
discriminator:
|
||||
propertyName: className
|
||||
mapping:
|
||||
whale: '#/components/schemas/whale'
|
||||
zebra: '#/components/schemas/zebra'
|
||||
whale:
|
||||
type: object
|
||||
properties:
|
||||
hasBaleen:
|
||||
type: boolean
|
||||
hasTeeth:
|
||||
type: boolean
|
||||
className:
|
||||
type: string
|
||||
required:
|
||||
- className
|
||||
zebra:
|
||||
type: object
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- plains
|
||||
- mountain
|
||||
- grevys
|
||||
className:
|
||||
type: string
|
||||
required:
|
||||
- className
|
||||
gmFruit:
|
||||
properties:
|
||||
color:
|
||||
type: string
|
||||
anyOf:
|
||||
- $ref: '#/components/schemas/apple'
|
||||
- $ref: '#/components/schemas/banana'
|
||||
fruitReq:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/appleReq'
|
||||
- $ref: '#/components/schemas/bananaReq'
|
||||
appleReq:
|
||||
type: object
|
||||
properties:
|
||||
cultivar:
|
||||
type: string
|
||||
mealy:
|
||||
type: boolean
|
||||
required:
|
||||
- cultivar
|
||||
bananaReq:
|
||||
type: object
|
||||
properties:
|
||||
lengthCm:
|
||||
type: number
|
||||
sweet:
|
||||
type: boolean
|
||||
required:
|
||||
- lengthCm
|
||||
|
||||
@@ -274,13 +274,20 @@ class ModelComposed(OpenApiModel):
|
||||
if self._path_to_item:
|
||||
path_to_item.extend(self._path_to_item)
|
||||
path_to_item.append(name)
|
||||
values = set()
|
||||
if model_instances:
|
||||
values = set()
|
||||
for model_instance in model_instances:
|
||||
if name in model_instance._data_store:
|
||||
values.add(model_instance._data_store[name])
|
||||
if len(values) == 1:
|
||||
return list(values)[0]
|
||||
len_values = len(values)
|
||||
if len_values == 0:
|
||||
raise ApiKeyError(
|
||||
"{0} has no key '{1}'".format(type(self).__name__, name),
|
||||
path_to_item
|
||||
)
|
||||
elif len_values == 1:
|
||||
return list(values)[0]
|
||||
elif len_values > 1:
|
||||
raise ApiValueError(
|
||||
"Values stored for property {0} in {1} difffer when looking "
|
||||
"at self and self's composed instances. All values must be "
|
||||
@@ -288,11 +295,6 @@ class ModelComposed(OpenApiModel):
|
||||
path_to_item
|
||||
)
|
||||
|
||||
raise ApiKeyError(
|
||||
"{0} has no key '{1}'".format(type(self).__name__, name),
|
||||
path_to_item
|
||||
)
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
return model_to_dict(self, serialize=False)
|
||||
@@ -1082,7 +1084,7 @@ def model_to_dict(model_instance, serialize=True):
|
||||
|
||||
model_instances = [model_instance]
|
||||
if model_instance._composed_schemas() is not None:
|
||||
model_instances = model_instance._composed_instances
|
||||
model_instances.extend(model_instance._composed_instances)
|
||||
for model_instance in model_instances:
|
||||
for attr, value in six.iteritems(model_instance._data_store):
|
||||
if serialize:
|
||||
@@ -1205,12 +1207,12 @@ def get_oneof_instance(self, model_args, constant_args):
|
||||
used to make instances
|
||||
|
||||
Returns
|
||||
oneof_instance (instance)
|
||||
oneof_instance (instance/None)
|
||||
"""
|
||||
oneof_instance = None
|
||||
if len(self._composed_schemas()['oneOf']) == 0:
|
||||
return oneof_instance
|
||||
return None
|
||||
|
||||
oneof_instances = []
|
||||
for oneof_class in self._composed_schemas()['oneOf']:
|
||||
# transform js keys to python keys in fixed_model_args
|
||||
fixed_model_args = change_keys_js_to_python(
|
||||
@@ -1223,20 +1225,30 @@ def get_oneof_instance(self, model_args, constant_args):
|
||||
if var_name in fixed_model_args:
|
||||
kwargs[var_name] = fixed_model_args[var_name]
|
||||
|
||||
# do not try to make a model with no input args
|
||||
if len(kwargs) == 0:
|
||||
continue
|
||||
|
||||
# and use it to make the instance
|
||||
kwargs.update(constant_args)
|
||||
try:
|
||||
oneof_instance = oneof_class(**kwargs)
|
||||
break
|
||||
oneof_instances.append(oneof_instance)
|
||||
except Exception:
|
||||
pass
|
||||
if oneof_instance is None:
|
||||
if len(oneof_instances) == 0:
|
||||
raise ApiValueError(
|
||||
"Invalid inputs given to generate an instance of %s. Unable to "
|
||||
"make any instances of the classes in oneOf definition." %
|
||||
self.__class__.__name__
|
||||
)
|
||||
return oneof_instance
|
||||
elif len(oneof_instances) > 1:
|
||||
raise ApiValueError(
|
||||
"Invalid inputs given to generate an instance of %s. Multiple "
|
||||
"oneOf instances were generated when a max of one is allowed." %
|
||||
self.__class__.__name__
|
||||
)
|
||||
return oneof_instances[0]
|
||||
|
||||
|
||||
def get_anyof_instances(self, model_args, constant_args):
|
||||
@@ -1266,6 +1278,10 @@ def get_anyof_instances(self, model_args, constant_args):
|
||||
if var_name in fixed_model_args:
|
||||
kwargs[var_name] = fixed_model_args[var_name]
|
||||
|
||||
# do not try to make a model with no input args
|
||||
if len(kwargs) == 0:
|
||||
continue
|
||||
|
||||
# and use it to make the instance
|
||||
kwargs.update(constant_args)
|
||||
try:
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class AdditionalPropertiesAnyType(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""additional_properties_any_type.AdditionalPropertiesAnyType - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class AdditionalPropertiesArray(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""additional_properties_array.AdditionalPropertiesArray - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class AdditionalPropertiesBoolean(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""additional_properties_boolean.AdditionalPropertiesBoolean - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -119,7 +120,6 @@ class AdditionalPropertiesClass(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""additional_properties_class.AdditionalPropertiesClass - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class AdditionalPropertiesInteger(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""additional_properties_integer.AdditionalPropertiesInteger - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class AdditionalPropertiesNumber(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""additional_properties_number.AdditionalPropertiesNumber - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class AdditionalPropertiesObject(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""additional_properties_object.AdditionalPropertiesObject - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class AdditionalPropertiesString(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""additional_properties_string.AdditionalPropertiesString - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -103,7 +104,6 @@ class ApiResponse(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""api_response.ApiResponse - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ArrayOfArrayOfNumberOnly(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""array_of_array_of_number_only.ArrayOfArrayOfNumberOnly - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ArrayOfNumberOnly(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""array_of_number_only.ArrayOfNumberOnly - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -108,7 +109,6 @@ class ArrayTest(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""array_test.ArrayTest - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -109,7 +110,6 @@ class Capitalization(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""capitalization.Capitalization - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -145,9 +146,16 @@ class Cat(ModelComposed):
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -156,7 +164,8 @@ class Cat(ModelComposed):
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
self.class_name = class_name
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class CatAllOf(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""cat_all_of.CatAllOf - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -104,7 +105,7 @@ class Category(ModelNormal):
|
||||
Args:
|
||||
|
||||
Keyword Args:
|
||||
name (str): defaults to 'default-name', must be one of ['default-name'] # noqa: E501
|
||||
name (str): defaults to 'default-name' # 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.
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -112,7 +113,6 @@ class Child(ModelComposed):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""child.Child - 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
|
||||
@@ -144,8 +144,15 @@ class Child(ModelComposed):
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -154,6 +161,8 @@ class Child(ModelComposed):
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ChildAllOf(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""child_all_of.ChildAllOf - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -142,9 +143,16 @@ class ChildCat(ModelComposed):
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -153,7 +161,8 @@ class ChildCat(ModelComposed):
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
self.pet_type = pet_type
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ChildCatAllOf(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""child_cat_all_of.ChildCatAllOf - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -142,9 +143,16 @@ class ChildDog(ModelComposed):
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -153,7 +161,8 @@ class ChildDog(ModelComposed):
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
self.pet_type = pet_type
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ChildDogAllOf(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""child_dog_all_of.ChildDogAllOf - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -142,9 +143,16 @@ class ChildLizard(ModelComposed):
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -153,7 +161,8 @@ class ChildLizard(ModelComposed):
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
self.pet_type = pet_type
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ChildLizardAllOf(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""child_lizard_all_of.ChildLizardAllOf - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ClassModel(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""class_model.ClassModel - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class Client(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""client.Client - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -145,9 +146,16 @@ class Dog(ModelComposed):
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -156,7 +164,8 @@ class Dog(ModelComposed):
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
self.class_name = class_name
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class DogAllOf(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""dog_all_of.DogAllOf - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -109,7 +110,6 @@ class EnumArrays(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""enum_arrays.EnumArrays - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,7 @@ class EnumClass(ModelSimple):
|
||||
Args:
|
||||
|
||||
Keyword Args:
|
||||
value (str): defaults to '-efg', must be one of ['-efg'] # noqa: E501
|
||||
value (str): defaults to '-efg', must be one of ["_abc", "-efg", "(xyz)", ] # 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.
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class File(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""file.File - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -106,7 +107,6 @@ class FileSchemaTestClass(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""file_schema_test_class.FileSchemaTestClass - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class Grandparent(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""grandparent.Grandparent - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -101,7 +102,6 @@ class HasOnlyReadOnly(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""has_only_read_only.HasOnlyReadOnly - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class List(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""list.List - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -114,7 +115,6 @@ class MapTest(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""map_test.MapTest - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -108,7 +109,6 @@ class MixedPropertiesAndAdditionalPropertiesClass(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -101,7 +102,6 @@ class Model200Response(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""model200_response.Model200Response - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ModelReturn(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""model_return.ModelReturn - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class NumberOnly(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""number_only.NumberOnly - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -114,7 +115,6 @@ class Order(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""order.Order - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -108,7 +109,6 @@ class OuterComposite(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""outer_composite.OuterComposite - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -110,7 +111,6 @@ class Parent(ModelComposed):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""parent.Parent - 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
|
||||
@@ -141,8 +141,15 @@ class Parent(ModelComposed):
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -151,6 +158,8 @@ class Parent(ModelComposed):
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class ParentAllOf(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""parent_all_of.ParentAllOf - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -155,9 +156,16 @@ class ParentPet(ModelComposed):
|
||||
'_from_server': _from_server,
|
||||
'_configuration': _configuration,
|
||||
}
|
||||
model_args = {
|
||||
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)
|
||||
composed_info = validate_get_composed_info(
|
||||
constant_args, model_args, self)
|
||||
@@ -166,7 +174,8 @@ class ParentPet(ModelComposed):
|
||||
self._additional_properties_model_instances = composed_info[2]
|
||||
unused_args = composed_info[3]
|
||||
|
||||
self.pet_type = pet_type
|
||||
for var_name, var_value in required_args.items():
|
||||
setattr(self, var_name, var_value)
|
||||
for var_name, var_value in six.iteritems(kwargs):
|
||||
if var_name in unused_args and \
|
||||
self._configuration is not None and \
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -101,7 +102,6 @@ class ReadOnlyFirst(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""read_only_first.ReadOnlyFirst - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -99,7 +100,6 @@ class SpecialModelName(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""special_model_name.SpecialModelName - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -97,7 +98,6 @@ class StringBooleanMap(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""string_boolean_map.StringBooleanMap - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -103,7 +104,6 @@ class Tag(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""tag.Tag - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -115,10 +116,10 @@ class TypeHolderDefault(ModelNormal):
|
||||
array_item ([int]):
|
||||
|
||||
Keyword Args:
|
||||
string_item (str): defaults to 'what', must be one of ['what'] # noqa: E501
|
||||
number_item (float): defaults to 1.234, must be one of [1.234] # noqa: E501
|
||||
integer_item (int): defaults to -2, must be one of [-2] # noqa: E501
|
||||
bool_item (bool): defaults to True, must be one of [True] # noqa: E501
|
||||
string_item (str): defaults to 'what' # noqa: E501
|
||||
number_item (float): defaults to 1.234 # noqa: E501
|
||||
integer_item (int): defaults to -2 # noqa: E501
|
||||
bool_item (bool): defaults to True # 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.
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -121,9 +122,9 @@ class TypeHolderExample(ModelNormal):
|
||||
array_item ([int]):
|
||||
|
||||
Keyword Args:
|
||||
string_item (str): defaults to 'what', must be one of ['what'] # noqa: E501
|
||||
number_item (float): defaults to 1.234, must be one of [1.234] # noqa: E501
|
||||
integer_item (int): defaults to -2, must be one of [-2] # noqa: E501
|
||||
string_item (str): defaults to 'what', must be one of ["what", ] # noqa: E501
|
||||
number_item (float): defaults to 1.234, must be one of [1.234, ] # noqa: E501
|
||||
integer_item (int): defaults to -2, must be one of [-2, ] # 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.
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -113,7 +114,6 @@ class User(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""user.User - 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
import six # noqa: F401
|
||||
import nulltype # noqa: F401
|
||||
|
||||
from petstore_api.model_utils import ( # noqa: F401
|
||||
ModelComposed,
|
||||
@@ -155,7 +156,6 @@ class XmlItem(ModelNormal):
|
||||
def __init__(self, _check_type=True, _from_server=False, _path_to_item=(), _configuration=None, **kwargs): # noqa: E501
|
||||
"""xml_item.XmlItem - 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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
nulltype
|
||||
certifi >= 14.05.14
|
||||
future; python_version<="2.7"
|
||||
six >= 1.10
|
||||
|
||||
@@ -26,6 +26,7 @@ REQUIRES = [
|
||||
"six >= 1.10",
|
||||
"certifi",
|
||||
"python-dateutil",
|
||||
"nulltype",
|
||||
]
|
||||
EXTRAS = {':python_version <= "2.7"': ['future']}
|
||||
|
||||
|
||||
@@ -117,9 +117,13 @@ Class | Method | HTTP request | Description
|
||||
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [Animal](docs/Animal.md)
|
||||
- [ApiResponse](docs/ApiResponse.md)
|
||||
- [Apple](docs/Apple.md)
|
||||
- [AppleReq](docs/AppleReq.md)
|
||||
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](docs/ArrayTest.md)
|
||||
- [Banana](docs/Banana.md)
|
||||
- [BananaReq](docs/BananaReq.md)
|
||||
- [Capitalization](docs/Capitalization.md)
|
||||
- [Cat](docs/Cat.md)
|
||||
- [CatAllOf](docs/CatAllOf.md)
|
||||
@@ -135,6 +139,9 @@ Class | Method | HTTP request | Description
|
||||
- [FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||
- [Foo](docs/Foo.md)
|
||||
- [FormatTest](docs/FormatTest.md)
|
||||
- [Fruit](docs/Fruit.md)
|
||||
- [FruitReq](docs/FruitReq.md)
|
||||
- [GmFruit](docs/GmFruit.md)
|
||||
- [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [InlineObject](docs/InlineObject.md)
|
||||
@@ -145,6 +152,7 @@ Class | Method | HTTP request | Description
|
||||
- [InlineObject5](docs/InlineObject5.md)
|
||||
- [InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [List](docs/List.md)
|
||||
- [Mammal](docs/Mammal.md)
|
||||
- [MapTest](docs/MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](docs/Model200Response.md)
|
||||
@@ -163,6 +171,8 @@ Class | Method | HTTP request | Description
|
||||
- [SpecialModelName](docs/SpecialModelName.md)
|
||||
- [Tag](docs/Tag.md)
|
||||
- [User](docs/User.md)
|
||||
- [Whale](docs/Whale.md)
|
||||
- [Zebra](docs/Zebra.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
||||
@@ -1892,6 +1892,88 @@ components:
|
||||
type: object
|
||||
type: object
|
||||
type: object
|
||||
fruit:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/apple'
|
||||
- $ref: '#/components/schemas/banana'
|
||||
properties:
|
||||
color:
|
||||
type: string
|
||||
x-oneOf-name: Fruit
|
||||
apple:
|
||||
properties:
|
||||
cultivar:
|
||||
type: string
|
||||
type: object
|
||||
banana:
|
||||
properties:
|
||||
lengthCm:
|
||||
type: number
|
||||
type: object
|
||||
mammal:
|
||||
discriminator:
|
||||
mapping:
|
||||
whale: '#/components/schemas/whale'
|
||||
zebra: '#/components/schemas/zebra'
|
||||
propertyName: className
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/whale'
|
||||
- $ref: '#/components/schemas/zebra'
|
||||
x-oneOf-name: Mammal
|
||||
whale:
|
||||
properties:
|
||||
hasBaleen:
|
||||
type: boolean
|
||||
hasTeeth:
|
||||
type: boolean
|
||||
className:
|
||||
type: string
|
||||
required:
|
||||
- className
|
||||
type: object
|
||||
zebra:
|
||||
properties:
|
||||
type:
|
||||
enum:
|
||||
- plains
|
||||
- mountain
|
||||
- grevys
|
||||
type: string
|
||||
className:
|
||||
type: string
|
||||
required:
|
||||
- className
|
||||
type: object
|
||||
gmFruit:
|
||||
anyOf:
|
||||
- $ref: '#/components/schemas/apple'
|
||||
- $ref: '#/components/schemas/banana'
|
||||
properties:
|
||||
color:
|
||||
type: string
|
||||
fruitReq:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/appleReq'
|
||||
- $ref: '#/components/schemas/bananaReq'
|
||||
x-oneOf-name: FruitReq
|
||||
appleReq:
|
||||
properties:
|
||||
cultivar:
|
||||
type: string
|
||||
mealy:
|
||||
type: boolean
|
||||
required:
|
||||
- cultivar
|
||||
type: object
|
||||
bananaReq:
|
||||
properties:
|
||||
lengthCm:
|
||||
type: number
|
||||
sweet:
|
||||
type: boolean
|
||||
required:
|
||||
- lengthCm
|
||||
type: object
|
||||
inline_response_default:
|
||||
example:
|
||||
string:
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
# Apple
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Cultivar** | Pointer to **string** | | [optional]
|
||||
**Color** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewApple
|
||||
|
||||
`func NewApple() *Apple`
|
||||
|
||||
NewApple instantiates a new Apple object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewAppleWithDefaults
|
||||
|
||||
`func NewAppleWithDefaults() *Apple`
|
||||
|
||||
NewAppleWithDefaults instantiates a new Apple object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetCultivar
|
||||
|
||||
`func (o *Apple) GetCultivar() string`
|
||||
|
||||
GetCultivar returns the Cultivar field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCultivarOk
|
||||
|
||||
`func (o *Apple) GetCultivarOk() (string, bool)`
|
||||
|
||||
GetCultivarOk returns a tuple with the Cultivar field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasCultivar
|
||||
|
||||
`func (o *Apple) HasCultivar() bool`
|
||||
|
||||
HasCultivar returns a boolean if a field has been set.
|
||||
|
||||
### SetCultivar
|
||||
|
||||
`func (o *Apple) SetCultivar(v string)`
|
||||
|
||||
SetCultivar gets a reference to the given string and assigns it to the Cultivar field.
|
||||
|
||||
### GetColor
|
||||
|
||||
`func (o *Apple) GetColor() string`
|
||||
|
||||
GetColor returns the Color field if non-nil, zero value otherwise.
|
||||
|
||||
### GetColorOk
|
||||
|
||||
`func (o *Apple) GetColorOk() (string, bool)`
|
||||
|
||||
GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasColor
|
||||
|
||||
`func (o *Apple) HasColor() bool`
|
||||
|
||||
HasColor returns a boolean if a field has been set.
|
||||
|
||||
### SetColor
|
||||
|
||||
`func (o *Apple) SetColor(v string)`
|
||||
|
||||
SetColor gets a reference to the given string and assigns it to the Color field.
|
||||
|
||||
|
||||
### AsFruit
|
||||
|
||||
`func (s *Apple) AsFruit() Fruit`
|
||||
|
||||
Convenience method to wrap this instance of Apple in Fruit
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
# AppleReq
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Cultivar** | Pointer to **string** | |
|
||||
**Mealy** | Pointer to **bool** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewAppleReq
|
||||
|
||||
`func NewAppleReq(cultivar string, ) *AppleReq`
|
||||
|
||||
NewAppleReq instantiates a new AppleReq object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewAppleReqWithDefaults
|
||||
|
||||
`func NewAppleReqWithDefaults() *AppleReq`
|
||||
|
||||
NewAppleReqWithDefaults instantiates a new AppleReq object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetCultivar
|
||||
|
||||
`func (o *AppleReq) GetCultivar() string`
|
||||
|
||||
GetCultivar returns the Cultivar field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCultivarOk
|
||||
|
||||
`func (o *AppleReq) GetCultivarOk() (string, bool)`
|
||||
|
||||
GetCultivarOk returns a tuple with the Cultivar field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasCultivar
|
||||
|
||||
`func (o *AppleReq) HasCultivar() bool`
|
||||
|
||||
HasCultivar returns a boolean if a field has been set.
|
||||
|
||||
### SetCultivar
|
||||
|
||||
`func (o *AppleReq) SetCultivar(v string)`
|
||||
|
||||
SetCultivar gets a reference to the given string and assigns it to the Cultivar field.
|
||||
|
||||
### GetMealy
|
||||
|
||||
`func (o *AppleReq) GetMealy() bool`
|
||||
|
||||
GetMealy returns the Mealy field if non-nil, zero value otherwise.
|
||||
|
||||
### GetMealyOk
|
||||
|
||||
`func (o *AppleReq) GetMealyOk() (bool, bool)`
|
||||
|
||||
GetMealyOk returns a tuple with the Mealy field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasMealy
|
||||
|
||||
`func (o *AppleReq) HasMealy() bool`
|
||||
|
||||
HasMealy returns a boolean if a field has been set.
|
||||
|
||||
### SetMealy
|
||||
|
||||
`func (o *AppleReq) SetMealy(v bool)`
|
||||
|
||||
SetMealy gets a reference to the given bool and assigns it to the Mealy field.
|
||||
|
||||
|
||||
### AsFruitReq
|
||||
|
||||
`func (s *AppleReq) AsFruitReq() FruitReq`
|
||||
|
||||
Convenience method to wrap this instance of AppleReq in FruitReq
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
# Banana
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**LengthCm** | Pointer to **float32** | | [optional]
|
||||
**Color** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewBanana
|
||||
|
||||
`func NewBanana() *Banana`
|
||||
|
||||
NewBanana instantiates a new Banana object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewBananaWithDefaults
|
||||
|
||||
`func NewBananaWithDefaults() *Banana`
|
||||
|
||||
NewBananaWithDefaults instantiates a new Banana object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetLengthCm
|
||||
|
||||
`func (o *Banana) GetLengthCm() float32`
|
||||
|
||||
GetLengthCm returns the LengthCm field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLengthCmOk
|
||||
|
||||
`func (o *Banana) GetLengthCmOk() (float32, bool)`
|
||||
|
||||
GetLengthCmOk returns a tuple with the LengthCm field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasLengthCm
|
||||
|
||||
`func (o *Banana) HasLengthCm() bool`
|
||||
|
||||
HasLengthCm returns a boolean if a field has been set.
|
||||
|
||||
### SetLengthCm
|
||||
|
||||
`func (o *Banana) SetLengthCm(v float32)`
|
||||
|
||||
SetLengthCm gets a reference to the given float32 and assigns it to the LengthCm field.
|
||||
|
||||
### GetColor
|
||||
|
||||
`func (o *Banana) GetColor() string`
|
||||
|
||||
GetColor returns the Color field if non-nil, zero value otherwise.
|
||||
|
||||
### GetColorOk
|
||||
|
||||
`func (o *Banana) GetColorOk() (string, bool)`
|
||||
|
||||
GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasColor
|
||||
|
||||
`func (o *Banana) HasColor() bool`
|
||||
|
||||
HasColor returns a boolean if a field has been set.
|
||||
|
||||
### SetColor
|
||||
|
||||
`func (o *Banana) SetColor(v string)`
|
||||
|
||||
SetColor gets a reference to the given string and assigns it to the Color field.
|
||||
|
||||
|
||||
### AsFruit
|
||||
|
||||
`func (s *Banana) AsFruit() Fruit`
|
||||
|
||||
Convenience method to wrap this instance of Banana in Fruit
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
# BananaReq
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**LengthCm** | Pointer to **float32** | |
|
||||
**Sweet** | Pointer to **bool** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewBananaReq
|
||||
|
||||
`func NewBananaReq(lengthCm float32, ) *BananaReq`
|
||||
|
||||
NewBananaReq instantiates a new BananaReq object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewBananaReqWithDefaults
|
||||
|
||||
`func NewBananaReqWithDefaults() *BananaReq`
|
||||
|
||||
NewBananaReqWithDefaults instantiates a new BananaReq object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetLengthCm
|
||||
|
||||
`func (o *BananaReq) GetLengthCm() float32`
|
||||
|
||||
GetLengthCm returns the LengthCm field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLengthCmOk
|
||||
|
||||
`func (o *BananaReq) GetLengthCmOk() (float32, bool)`
|
||||
|
||||
GetLengthCmOk returns a tuple with the LengthCm field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasLengthCm
|
||||
|
||||
`func (o *BananaReq) HasLengthCm() bool`
|
||||
|
||||
HasLengthCm returns a boolean if a field has been set.
|
||||
|
||||
### SetLengthCm
|
||||
|
||||
`func (o *BananaReq) SetLengthCm(v float32)`
|
||||
|
||||
SetLengthCm gets a reference to the given float32 and assigns it to the LengthCm field.
|
||||
|
||||
### GetSweet
|
||||
|
||||
`func (o *BananaReq) GetSweet() bool`
|
||||
|
||||
GetSweet returns the Sweet field if non-nil, zero value otherwise.
|
||||
|
||||
### GetSweetOk
|
||||
|
||||
`func (o *BananaReq) GetSweetOk() (bool, bool)`
|
||||
|
||||
GetSweetOk returns a tuple with the Sweet field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasSweet
|
||||
|
||||
`func (o *BananaReq) HasSweet() bool`
|
||||
|
||||
HasSweet returns a boolean if a field has been set.
|
||||
|
||||
### SetSweet
|
||||
|
||||
`func (o *BananaReq) SetSweet(v bool)`
|
||||
|
||||
SetSweet gets a reference to the given bool and assigns it to the Sweet field.
|
||||
|
||||
|
||||
### AsFruitReq
|
||||
|
||||
`func (s *BananaReq) AsFruitReq() FruitReq`
|
||||
|
||||
Convenience method to wrap this instance of BananaReq in FruitReq
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# Fruit
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**FruitInterface** | **interface { }** | An interface that can hold any of the proper implementing types |
|
||||
|
||||
## Methods
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# FruitReq
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**FruitReqInterface** | **interface { }** | An interface that can hold any of the proper implementing types |
|
||||
|
||||
## Methods
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
# GmFruit
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Color** | Pointer to **string** | | [optional]
|
||||
**Cultivar** | Pointer to **string** | | [optional]
|
||||
**LengthCm** | Pointer to **float32** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
||||
### NewGmFruit
|
||||
|
||||
`func NewGmFruit() *GmFruit`
|
||||
|
||||
NewGmFruit instantiates a new GmFruit object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewGmFruitWithDefaults
|
||||
|
||||
`func NewGmFruitWithDefaults() *GmFruit`
|
||||
|
||||
NewGmFruitWithDefaults instantiates a new GmFruit object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetColor
|
||||
|
||||
`func (o *GmFruit) GetColor() string`
|
||||
|
||||
GetColor returns the Color field if non-nil, zero value otherwise.
|
||||
|
||||
### GetColorOk
|
||||
|
||||
`func (o *GmFruit) GetColorOk() (string, bool)`
|
||||
|
||||
GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasColor
|
||||
|
||||
`func (o *GmFruit) HasColor() bool`
|
||||
|
||||
HasColor returns a boolean if a field has been set.
|
||||
|
||||
### SetColor
|
||||
|
||||
`func (o *GmFruit) SetColor(v string)`
|
||||
|
||||
SetColor gets a reference to the given string and assigns it to the Color field.
|
||||
|
||||
### GetCultivar
|
||||
|
||||
`func (o *GmFruit) GetCultivar() string`
|
||||
|
||||
GetCultivar returns the Cultivar field if non-nil, zero value otherwise.
|
||||
|
||||
### GetCultivarOk
|
||||
|
||||
`func (o *GmFruit) GetCultivarOk() (string, bool)`
|
||||
|
||||
GetCultivarOk returns a tuple with the Cultivar field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasCultivar
|
||||
|
||||
`func (o *GmFruit) HasCultivar() bool`
|
||||
|
||||
HasCultivar returns a boolean if a field has been set.
|
||||
|
||||
### SetCultivar
|
||||
|
||||
`func (o *GmFruit) SetCultivar(v string)`
|
||||
|
||||
SetCultivar gets a reference to the given string and assigns it to the Cultivar field.
|
||||
|
||||
### GetLengthCm
|
||||
|
||||
`func (o *GmFruit) GetLengthCm() float32`
|
||||
|
||||
GetLengthCm returns the LengthCm field if non-nil, zero value otherwise.
|
||||
|
||||
### GetLengthCmOk
|
||||
|
||||
`func (o *GmFruit) GetLengthCmOk() (float32, bool)`
|
||||
|
||||
GetLengthCmOk returns a tuple with the LengthCm field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasLengthCm
|
||||
|
||||
`func (o *GmFruit) HasLengthCm() bool`
|
||||
|
||||
HasLengthCm returns a boolean if a field has been set.
|
||||
|
||||
### SetLengthCm
|
||||
|
||||
`func (o *GmFruit) SetLengthCm(v float32)`
|
||||
|
||||
SetLengthCm gets a reference to the given float32 and assigns it to the LengthCm field.
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# Mammal
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**MammalInterface** | **interface { GetClassName() string }** | An interface that can hold any of the proper implementing types |
|
||||
|
||||
## Methods
|
||||
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
# Whale
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**HasBaleen** | Pointer to **bool** | | [optional]
|
||||
**HasTeeth** | Pointer to **bool** | | [optional]
|
||||
**ClassName** | Pointer to **string** | |
|
||||
|
||||
## Methods
|
||||
|
||||
### NewWhale
|
||||
|
||||
`func NewWhale(className string, ) *Whale`
|
||||
|
||||
NewWhale instantiates a new Whale object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewWhaleWithDefaults
|
||||
|
||||
`func NewWhaleWithDefaults() *Whale`
|
||||
|
||||
NewWhaleWithDefaults instantiates a new Whale object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetHasBaleen
|
||||
|
||||
`func (o *Whale) GetHasBaleen() bool`
|
||||
|
||||
GetHasBaleen returns the HasBaleen field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHasBaleenOk
|
||||
|
||||
`func (o *Whale) GetHasBaleenOk() (bool, bool)`
|
||||
|
||||
GetHasBaleenOk returns a tuple with the HasBaleen field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasHasBaleen
|
||||
|
||||
`func (o *Whale) HasHasBaleen() bool`
|
||||
|
||||
HasHasBaleen returns a boolean if a field has been set.
|
||||
|
||||
### SetHasBaleen
|
||||
|
||||
`func (o *Whale) SetHasBaleen(v bool)`
|
||||
|
||||
SetHasBaleen gets a reference to the given bool and assigns it to the HasBaleen field.
|
||||
|
||||
### GetHasTeeth
|
||||
|
||||
`func (o *Whale) GetHasTeeth() bool`
|
||||
|
||||
GetHasTeeth returns the HasTeeth field if non-nil, zero value otherwise.
|
||||
|
||||
### GetHasTeethOk
|
||||
|
||||
`func (o *Whale) GetHasTeethOk() (bool, bool)`
|
||||
|
||||
GetHasTeethOk returns a tuple with the HasTeeth field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasHasTeeth
|
||||
|
||||
`func (o *Whale) HasHasTeeth() bool`
|
||||
|
||||
HasHasTeeth returns a boolean if a field has been set.
|
||||
|
||||
### SetHasTeeth
|
||||
|
||||
`func (o *Whale) SetHasTeeth(v bool)`
|
||||
|
||||
SetHasTeeth gets a reference to the given bool and assigns it to the HasTeeth field.
|
||||
|
||||
### GetClassName
|
||||
|
||||
`func (o *Whale) GetClassName() string`
|
||||
|
||||
GetClassName returns the ClassName field if non-nil, zero value otherwise.
|
||||
|
||||
### GetClassNameOk
|
||||
|
||||
`func (o *Whale) GetClassNameOk() (string, bool)`
|
||||
|
||||
GetClassNameOk returns a tuple with the ClassName field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasClassName
|
||||
|
||||
`func (o *Whale) HasClassName() bool`
|
||||
|
||||
HasClassName returns a boolean if a field has been set.
|
||||
|
||||
### SetClassName
|
||||
|
||||
`func (o *Whale) SetClassName(v string)`
|
||||
|
||||
SetClassName gets a reference to the given string and assigns it to the ClassName field.
|
||||
|
||||
|
||||
### AsMammal
|
||||
|
||||
`func (s *Whale) AsMammal() Mammal`
|
||||
|
||||
Convenience method to wrap this instance of Whale in Mammal
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
# Zebra
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Type** | Pointer to **string** | | [optional]
|
||||
**ClassName** | Pointer to **string** | |
|
||||
|
||||
## Methods
|
||||
|
||||
### NewZebra
|
||||
|
||||
`func NewZebra(className string, ) *Zebra`
|
||||
|
||||
NewZebra instantiates a new Zebra object
|
||||
This constructor will assign default values to properties that have it defined,
|
||||
and makes sure properties required by API are set, but the set of arguments
|
||||
will change when the set of required properties is changed
|
||||
|
||||
### NewZebraWithDefaults
|
||||
|
||||
`func NewZebraWithDefaults() *Zebra`
|
||||
|
||||
NewZebraWithDefaults instantiates a new Zebra object
|
||||
This constructor will only assign default values to properties that have it defined,
|
||||
but it doesn't guarantee that properties required by API are set
|
||||
|
||||
### GetType
|
||||
|
||||
`func (o *Zebra) GetType() string`
|
||||
|
||||
GetType returns the Type field if non-nil, zero value otherwise.
|
||||
|
||||
### GetTypeOk
|
||||
|
||||
`func (o *Zebra) GetTypeOk() (string, bool)`
|
||||
|
||||
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasType
|
||||
|
||||
`func (o *Zebra) HasType() bool`
|
||||
|
||||
HasType returns a boolean if a field has been set.
|
||||
|
||||
### SetType
|
||||
|
||||
`func (o *Zebra) SetType(v string)`
|
||||
|
||||
SetType gets a reference to the given string and assigns it to the Type field.
|
||||
|
||||
### GetClassName
|
||||
|
||||
`func (o *Zebra) GetClassName() string`
|
||||
|
||||
GetClassName returns the ClassName field if non-nil, zero value otherwise.
|
||||
|
||||
### GetClassNameOk
|
||||
|
||||
`func (o *Zebra) GetClassNameOk() (string, bool)`
|
||||
|
||||
GetClassNameOk returns a tuple with the ClassName field if it's non-nil, zero value otherwise
|
||||
and a boolean to check if the value has been set.
|
||||
|
||||
### HasClassName
|
||||
|
||||
`func (o *Zebra) HasClassName() bool`
|
||||
|
||||
HasClassName returns a boolean if a field has been set.
|
||||
|
||||
### SetClassName
|
||||
|
||||
`func (o *Zebra) SetClassName(v string)`
|
||||
|
||||
SetClassName gets a reference to the given string and assigns it to the ClassName field.
|
||||
|
||||
|
||||
### AsMammal
|
||||
|
||||
`func (s *Zebra) AsMammal() Mammal`
|
||||
|
||||
Convenience method to wrap this instance of Zebra in Mammal
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Apple struct for Apple
|
||||
type Apple struct {
|
||||
Cultivar *string `json:"cultivar,omitempty"`
|
||||
Color *string `json:"color,omitempty"`
|
||||
}
|
||||
|
||||
// NewApple instantiates a new Apple object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewApple() *Apple {
|
||||
this := Apple{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewAppleWithDefaults instantiates a new Apple object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewAppleWithDefaults() *Apple {
|
||||
this := Apple{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCultivar returns the Cultivar field value if set, zero value otherwise.
|
||||
func (o *Apple) GetCultivar() string {
|
||||
if o == nil || o.Cultivar == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Cultivar
|
||||
}
|
||||
|
||||
// GetCultivarOk returns a tuple with the Cultivar field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Apple) GetCultivarOk() (string, bool) {
|
||||
if o == nil || o.Cultivar == nil {
|
||||
var ret string
|
||||
return ret, false
|
||||
}
|
||||
return *o.Cultivar, true
|
||||
}
|
||||
|
||||
// HasCultivar returns a boolean if a field has been set.
|
||||
func (o *Apple) HasCultivar() bool {
|
||||
if o != nil && o.Cultivar != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCultivar gets a reference to the given string and assigns it to the Cultivar field.
|
||||
func (o *Apple) SetCultivar(v string) {
|
||||
o.Cultivar = &v
|
||||
}
|
||||
|
||||
// GetColor returns the Color field value if set, zero value otherwise.
|
||||
func (o *Apple) GetColor() string {
|
||||
if o == nil || o.Color == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Color
|
||||
}
|
||||
|
||||
// GetColorOk returns a tuple with the Color field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Apple) GetColorOk() (string, bool) {
|
||||
if o == nil || o.Color == nil {
|
||||
var ret string
|
||||
return ret, false
|
||||
}
|
||||
return *o.Color, true
|
||||
}
|
||||
|
||||
// HasColor returns a boolean if a field has been set.
|
||||
func (o *Apple) HasColor() bool {
|
||||
if o != nil && o.Color != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetColor gets a reference to the given string and assigns it to the Color field.
|
||||
func (o *Apple) SetColor(v string) {
|
||||
o.Color = &v
|
||||
}
|
||||
|
||||
// AsFruit wraps this instance of Apple in Fruit
|
||||
func (s *Apple) AsFruit() Fruit {
|
||||
return Fruit{ FruitInterface: s }
|
||||
}
|
||||
type NullableApple struct {
|
||||
Value Apple
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableApple) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableApple) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// AppleReq struct for AppleReq
|
||||
type AppleReq struct {
|
||||
Cultivar string `json:"cultivar"`
|
||||
Mealy *bool `json:"mealy,omitempty"`
|
||||
}
|
||||
|
||||
// NewAppleReq instantiates a new AppleReq object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewAppleReq(cultivar string, ) *AppleReq {
|
||||
this := AppleReq{}
|
||||
this.Cultivar = cultivar
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewAppleReqWithDefaults instantiates a new AppleReq object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewAppleReqWithDefaults() *AppleReq {
|
||||
this := AppleReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCultivar returns the Cultivar field value
|
||||
func (o *AppleReq) GetCultivar() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Cultivar
|
||||
}
|
||||
|
||||
// SetCultivar sets field value
|
||||
func (o *AppleReq) SetCultivar(v string) {
|
||||
o.Cultivar = v
|
||||
}
|
||||
|
||||
// GetMealy returns the Mealy field value if set, zero value otherwise.
|
||||
func (o *AppleReq) GetMealy() bool {
|
||||
if o == nil || o.Mealy == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.Mealy
|
||||
}
|
||||
|
||||
// GetMealyOk returns a tuple with the Mealy field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *AppleReq) GetMealyOk() (bool, bool) {
|
||||
if o == nil || o.Mealy == nil {
|
||||
var ret bool
|
||||
return ret, false
|
||||
}
|
||||
return *o.Mealy, true
|
||||
}
|
||||
|
||||
// HasMealy returns a boolean if a field has been set.
|
||||
func (o *AppleReq) HasMealy() bool {
|
||||
if o != nil && o.Mealy != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMealy gets a reference to the given bool and assigns it to the Mealy field.
|
||||
func (o *AppleReq) SetMealy(v bool) {
|
||||
o.Mealy = &v
|
||||
}
|
||||
|
||||
// AsFruitReq wraps this instance of AppleReq in FruitReq
|
||||
func (s *AppleReq) AsFruitReq() FruitReq {
|
||||
return FruitReq{ FruitReqInterface: s }
|
||||
}
|
||||
type NullableAppleReq struct {
|
||||
Value AppleReq
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableAppleReq) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableAppleReq) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Banana struct for Banana
|
||||
type Banana struct {
|
||||
LengthCm *float32 `json:"lengthCm,omitempty"`
|
||||
Color *string `json:"color,omitempty"`
|
||||
}
|
||||
|
||||
// NewBanana instantiates a new Banana object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewBanana() *Banana {
|
||||
this := Banana{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewBananaWithDefaults instantiates a new Banana object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewBananaWithDefaults() *Banana {
|
||||
this := Banana{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetLengthCm returns the LengthCm field value if set, zero value otherwise.
|
||||
func (o *Banana) GetLengthCm() float32 {
|
||||
if o == nil || o.LengthCm == nil {
|
||||
var ret float32
|
||||
return ret
|
||||
}
|
||||
return *o.LengthCm
|
||||
}
|
||||
|
||||
// GetLengthCmOk returns a tuple with the LengthCm field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Banana) GetLengthCmOk() (float32, bool) {
|
||||
if o == nil || o.LengthCm == nil {
|
||||
var ret float32
|
||||
return ret, false
|
||||
}
|
||||
return *o.LengthCm, true
|
||||
}
|
||||
|
||||
// HasLengthCm returns a boolean if a field has been set.
|
||||
func (o *Banana) HasLengthCm() bool {
|
||||
if o != nil && o.LengthCm != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLengthCm gets a reference to the given float32 and assigns it to the LengthCm field.
|
||||
func (o *Banana) SetLengthCm(v float32) {
|
||||
o.LengthCm = &v
|
||||
}
|
||||
|
||||
// GetColor returns the Color field value if set, zero value otherwise.
|
||||
func (o *Banana) GetColor() string {
|
||||
if o == nil || o.Color == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Color
|
||||
}
|
||||
|
||||
// GetColorOk returns a tuple with the Color field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Banana) GetColorOk() (string, bool) {
|
||||
if o == nil || o.Color == nil {
|
||||
var ret string
|
||||
return ret, false
|
||||
}
|
||||
return *o.Color, true
|
||||
}
|
||||
|
||||
// HasColor returns a boolean if a field has been set.
|
||||
func (o *Banana) HasColor() bool {
|
||||
if o != nil && o.Color != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetColor gets a reference to the given string and assigns it to the Color field.
|
||||
func (o *Banana) SetColor(v string) {
|
||||
o.Color = &v
|
||||
}
|
||||
|
||||
// AsFruit wraps this instance of Banana in Fruit
|
||||
func (s *Banana) AsFruit() Fruit {
|
||||
return Fruit{ FruitInterface: s }
|
||||
}
|
||||
type NullableBanana struct {
|
||||
Value Banana
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableBanana) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableBanana) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// BananaReq struct for BananaReq
|
||||
type BananaReq struct {
|
||||
LengthCm float32 `json:"lengthCm"`
|
||||
Sweet *bool `json:"sweet,omitempty"`
|
||||
}
|
||||
|
||||
// NewBananaReq instantiates a new BananaReq object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewBananaReq(lengthCm float32, ) *BananaReq {
|
||||
this := BananaReq{}
|
||||
this.LengthCm = lengthCm
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewBananaReqWithDefaults instantiates a new BananaReq object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewBananaReqWithDefaults() *BananaReq {
|
||||
this := BananaReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetLengthCm returns the LengthCm field value
|
||||
func (o *BananaReq) GetLengthCm() float32 {
|
||||
if o == nil {
|
||||
var ret float32
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.LengthCm
|
||||
}
|
||||
|
||||
// SetLengthCm sets field value
|
||||
func (o *BananaReq) SetLengthCm(v float32) {
|
||||
o.LengthCm = v
|
||||
}
|
||||
|
||||
// GetSweet returns the Sweet field value if set, zero value otherwise.
|
||||
func (o *BananaReq) GetSweet() bool {
|
||||
if o == nil || o.Sweet == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.Sweet
|
||||
}
|
||||
|
||||
// GetSweetOk returns a tuple with the Sweet field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *BananaReq) GetSweetOk() (bool, bool) {
|
||||
if o == nil || o.Sweet == nil {
|
||||
var ret bool
|
||||
return ret, false
|
||||
}
|
||||
return *o.Sweet, true
|
||||
}
|
||||
|
||||
// HasSweet returns a boolean if a field has been set.
|
||||
func (o *BananaReq) HasSweet() bool {
|
||||
if o != nil && o.Sweet != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetSweet gets a reference to the given bool and assigns it to the Sweet field.
|
||||
func (o *BananaReq) SetSweet(v bool) {
|
||||
o.Sweet = &v
|
||||
}
|
||||
|
||||
// AsFruitReq wraps this instance of BananaReq in FruitReq
|
||||
func (s *BananaReq) AsFruitReq() FruitReq {
|
||||
return FruitReq{ FruitReqInterface: s }
|
||||
}
|
||||
type NullableBananaReq struct {
|
||||
Value BananaReq
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableBananaReq) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableBananaReq) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Fruit struct for Fruit
|
||||
type Fruit struct {
|
||||
FruitInterface interface { }
|
||||
}
|
||||
|
||||
func (s *Fruit) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(s.FruitInterface)
|
||||
}
|
||||
|
||||
func (s *Fruit) UnmarshalJSON(src []byte) error {
|
||||
var err error
|
||||
var unmarshaledApple *Apple = &Apple{}
|
||||
err = json.Unmarshal(src, unmarshaledApple)
|
||||
if err == nil {
|
||||
s.FruitInterface = unmarshaledApple
|
||||
return nil
|
||||
}
|
||||
var unmarshaledBanana *Banana = &Banana{}
|
||||
err = json.Unmarshal(src, unmarshaledBanana)
|
||||
if err == nil {
|
||||
s.FruitInterface = unmarshaledBanana
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("No oneOf model could be deserialized from payload: %s", string(src))
|
||||
}
|
||||
type NullableFruit struct {
|
||||
Value Fruit
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableFruit) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableFruit) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// FruitReq struct for FruitReq
|
||||
type FruitReq struct {
|
||||
FruitReqInterface interface { }
|
||||
}
|
||||
|
||||
func (s *FruitReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(s.FruitReqInterface)
|
||||
}
|
||||
|
||||
func (s *FruitReq) UnmarshalJSON(src []byte) error {
|
||||
var err error
|
||||
var unmarshaledAppleReq *AppleReq = &AppleReq{}
|
||||
err = json.Unmarshal(src, unmarshaledAppleReq)
|
||||
if err == nil {
|
||||
s.FruitReqInterface = unmarshaledAppleReq
|
||||
return nil
|
||||
}
|
||||
var unmarshaledBananaReq *BananaReq = &BananaReq{}
|
||||
err = json.Unmarshal(src, unmarshaledBananaReq)
|
||||
if err == nil {
|
||||
s.FruitReqInterface = unmarshaledBananaReq
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("No oneOf model could be deserialized from payload: %s", string(src))
|
||||
}
|
||||
type NullableFruitReq struct {
|
||||
Value FruitReq
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableFruitReq) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableFruitReq) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// GmFruit struct for GmFruit
|
||||
type GmFruit struct {
|
||||
Color *string `json:"color,omitempty"`
|
||||
Cultivar *string `json:"cultivar,omitempty"`
|
||||
LengthCm *float32 `json:"lengthCm,omitempty"`
|
||||
}
|
||||
|
||||
// NewGmFruit instantiates a new GmFruit object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewGmFruit() *GmFruit {
|
||||
this := GmFruit{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewGmFruitWithDefaults instantiates a new GmFruit object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewGmFruitWithDefaults() *GmFruit {
|
||||
this := GmFruit{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetColor returns the Color field value if set, zero value otherwise.
|
||||
func (o *GmFruit) GetColor() string {
|
||||
if o == nil || o.Color == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Color
|
||||
}
|
||||
|
||||
// GetColorOk returns a tuple with the Color field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GmFruit) GetColorOk() (string, bool) {
|
||||
if o == nil || o.Color == nil {
|
||||
var ret string
|
||||
return ret, false
|
||||
}
|
||||
return *o.Color, true
|
||||
}
|
||||
|
||||
// HasColor returns a boolean if a field has been set.
|
||||
func (o *GmFruit) HasColor() bool {
|
||||
if o != nil && o.Color != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetColor gets a reference to the given string and assigns it to the Color field.
|
||||
func (o *GmFruit) SetColor(v string) {
|
||||
o.Color = &v
|
||||
}
|
||||
|
||||
// GetCultivar returns the Cultivar field value if set, zero value otherwise.
|
||||
func (o *GmFruit) GetCultivar() string {
|
||||
if o == nil || o.Cultivar == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Cultivar
|
||||
}
|
||||
|
||||
// GetCultivarOk returns a tuple with the Cultivar field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GmFruit) GetCultivarOk() (string, bool) {
|
||||
if o == nil || o.Cultivar == nil {
|
||||
var ret string
|
||||
return ret, false
|
||||
}
|
||||
return *o.Cultivar, true
|
||||
}
|
||||
|
||||
// HasCultivar returns a boolean if a field has been set.
|
||||
func (o *GmFruit) HasCultivar() bool {
|
||||
if o != nil && o.Cultivar != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCultivar gets a reference to the given string and assigns it to the Cultivar field.
|
||||
func (o *GmFruit) SetCultivar(v string) {
|
||||
o.Cultivar = &v
|
||||
}
|
||||
|
||||
// GetLengthCm returns the LengthCm field value if set, zero value otherwise.
|
||||
func (o *GmFruit) GetLengthCm() float32 {
|
||||
if o == nil || o.LengthCm == nil {
|
||||
var ret float32
|
||||
return ret
|
||||
}
|
||||
return *o.LengthCm
|
||||
}
|
||||
|
||||
// GetLengthCmOk returns a tuple with the LengthCm field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *GmFruit) GetLengthCmOk() (float32, bool) {
|
||||
if o == nil || o.LengthCm == nil {
|
||||
var ret float32
|
||||
return ret, false
|
||||
}
|
||||
return *o.LengthCm, true
|
||||
}
|
||||
|
||||
// HasLengthCm returns a boolean if a field has been set.
|
||||
func (o *GmFruit) HasLengthCm() bool {
|
||||
if o != nil && o.LengthCm != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLengthCm gets a reference to the given float32 and assigns it to the LengthCm field.
|
||||
func (o *GmFruit) SetLengthCm(v float32) {
|
||||
o.LengthCm = &v
|
||||
}
|
||||
|
||||
type NullableGmFruit struct {
|
||||
Value GmFruit
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableGmFruit) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableGmFruit) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Mammal struct for Mammal
|
||||
type Mammal struct {
|
||||
MammalInterface interface { GetClassName() string }
|
||||
}
|
||||
|
||||
func (s *Mammal) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(s.MammalInterface)
|
||||
}
|
||||
|
||||
func (s *Mammal) UnmarshalJSON(src []byte) error {
|
||||
var err error
|
||||
var unmarshaled map[string]interface{}
|
||||
err = json.Unmarshal(src, &unmarshaled)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if v, ok := unmarshaled["className"]; ok {
|
||||
switch v {
|
||||
case "whale":
|
||||
var result *Whale = &Whale{}
|
||||
err = json.Unmarshal(src, result)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
s.MammalInterface = result
|
||||
return nil
|
||||
case "zebra":
|
||||
var result *Zebra = &Zebra{}
|
||||
err = json.Unmarshal(src, result)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
s.MammalInterface = result
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("No oneOf model has 'className' equal to %s", v)
|
||||
}
|
||||
} else {
|
||||
return fmt.Errorf("Discriminator property 'className' not found in unmarshaled payload: %+v", unmarshaled)
|
||||
}
|
||||
}
|
||||
type NullableMammal struct {
|
||||
Value Mammal
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableMammal) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableMammal) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Whale struct for Whale
|
||||
type Whale struct {
|
||||
HasBaleen *bool `json:"hasBaleen,omitempty"`
|
||||
HasTeeth *bool `json:"hasTeeth,omitempty"`
|
||||
ClassName string `json:"className"`
|
||||
}
|
||||
|
||||
// NewWhale instantiates a new Whale object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewWhale(className string, ) *Whale {
|
||||
this := Whale{}
|
||||
this.ClassName = className
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewWhaleWithDefaults instantiates a new Whale object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewWhaleWithDefaults() *Whale {
|
||||
this := Whale{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetHasBaleen returns the HasBaleen field value if set, zero value otherwise.
|
||||
func (o *Whale) GetHasBaleen() bool {
|
||||
if o == nil || o.HasBaleen == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.HasBaleen
|
||||
}
|
||||
|
||||
// GetHasBaleenOk returns a tuple with the HasBaleen field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Whale) GetHasBaleenOk() (bool, bool) {
|
||||
if o == nil || o.HasBaleen == nil {
|
||||
var ret bool
|
||||
return ret, false
|
||||
}
|
||||
return *o.HasBaleen, true
|
||||
}
|
||||
|
||||
// HasHasBaleen returns a boolean if a field has been set.
|
||||
func (o *Whale) HasHasBaleen() bool {
|
||||
if o != nil && o.HasBaleen != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHasBaleen gets a reference to the given bool and assigns it to the HasBaleen field.
|
||||
func (o *Whale) SetHasBaleen(v bool) {
|
||||
o.HasBaleen = &v
|
||||
}
|
||||
|
||||
// GetHasTeeth returns the HasTeeth field value if set, zero value otherwise.
|
||||
func (o *Whale) GetHasTeeth() bool {
|
||||
if o == nil || o.HasTeeth == nil {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.HasTeeth
|
||||
}
|
||||
|
||||
// GetHasTeethOk returns a tuple with the HasTeeth field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Whale) GetHasTeethOk() (bool, bool) {
|
||||
if o == nil || o.HasTeeth == nil {
|
||||
var ret bool
|
||||
return ret, false
|
||||
}
|
||||
return *o.HasTeeth, true
|
||||
}
|
||||
|
||||
// HasHasTeeth returns a boolean if a field has been set.
|
||||
func (o *Whale) HasHasTeeth() bool {
|
||||
if o != nil && o.HasTeeth != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHasTeeth gets a reference to the given bool and assigns it to the HasTeeth field.
|
||||
func (o *Whale) SetHasTeeth(v bool) {
|
||||
o.HasTeeth = &v
|
||||
}
|
||||
|
||||
// GetClassName returns the ClassName field value
|
||||
func (o *Whale) GetClassName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.ClassName
|
||||
}
|
||||
|
||||
// SetClassName sets field value
|
||||
func (o *Whale) SetClassName(v string) {
|
||||
o.ClassName = v
|
||||
}
|
||||
|
||||
// AsMammal wraps this instance of Whale in Mammal
|
||||
func (s *Whale) AsMammal() Mammal {
|
||||
return Mammal{ MammalInterface: s }
|
||||
}
|
||||
type NullableWhale struct {
|
||||
Value Whale
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableWhale) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableWhale) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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: \" \\
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Zebra struct for Zebra
|
||||
type Zebra struct {
|
||||
Type *string `json:"type,omitempty"`
|
||||
ClassName string `json:"className"`
|
||||
}
|
||||
|
||||
// NewZebra instantiates a new Zebra object
|
||||
// This constructor will assign default values to properties that have it defined,
|
||||
// and makes sure properties required by API are set, but the set of arguments
|
||||
// will change when the set of required properties is changed
|
||||
func NewZebra(className string, ) *Zebra {
|
||||
this := Zebra{}
|
||||
this.ClassName = className
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewZebraWithDefaults instantiates a new Zebra object
|
||||
// This constructor will only assign default values to properties that have it defined,
|
||||
// but it doesn't guarantee that properties required by API are set
|
||||
func NewZebraWithDefaults() *Zebra {
|
||||
this := Zebra{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetType returns the Type field value if set, zero value otherwise.
|
||||
func (o *Zebra) GetType() string {
|
||||
if o == nil || o.Type == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Type
|
||||
}
|
||||
|
||||
// GetTypeOk returns a tuple with the Type field value if set, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Zebra) GetTypeOk() (string, bool) {
|
||||
if o == nil || o.Type == nil {
|
||||
var ret string
|
||||
return ret, false
|
||||
}
|
||||
return *o.Type, true
|
||||
}
|
||||
|
||||
// HasType returns a boolean if a field has been set.
|
||||
func (o *Zebra) HasType() bool {
|
||||
if o != nil && o.Type != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetType gets a reference to the given string and assigns it to the Type field.
|
||||
func (o *Zebra) SetType(v string) {
|
||||
o.Type = &v
|
||||
}
|
||||
|
||||
// GetClassName returns the ClassName field value
|
||||
func (o *Zebra) GetClassName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.ClassName
|
||||
}
|
||||
|
||||
// SetClassName sets field value
|
||||
func (o *Zebra) SetClassName(v string) {
|
||||
o.ClassName = v
|
||||
}
|
||||
|
||||
// AsMammal wraps this instance of Zebra in Mammal
|
||||
func (s *Zebra) AsMammal() Mammal {
|
||||
return Mammal{ MammalInterface: s }
|
||||
}
|
||||
type NullableZebra struct {
|
||||
Value Zebra
|
||||
ExplicitNull bool
|
||||
}
|
||||
|
||||
func (v NullableZebra) MarshalJSON() ([]byte, error) {
|
||||
switch {
|
||||
case v.ExplicitNull:
|
||||
return []byte("null"), nil
|
||||
default:
|
||||
return json.Marshal(v.Value)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *NullableZebra) UnmarshalJSON(src []byte) error {
|
||||
if bytes.Equal(src, []byte("null")) {
|
||||
v.ExplicitNull = true
|
||||
return nil
|
||||
}
|
||||
|
||||
return json.Unmarshal(src, &v.Value)
|
||||
}
|
||||
@@ -120,9 +120,13 @@ Class | Method | HTTP request | Description
|
||||
- [address.Address](docs/Address.md)
|
||||
- [animal.Animal](docs/Animal.md)
|
||||
- [api_response.ApiResponse](docs/ApiResponse.md)
|
||||
- [apple.Apple](docs/Apple.md)
|
||||
- [apple_req.AppleReq](docs/AppleReq.md)
|
||||
- [array_of_array_of_number_only.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [array_of_number_only.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
- [array_test.ArrayTest](docs/ArrayTest.md)
|
||||
- [banana.Banana](docs/Banana.md)
|
||||
- [banana_req.BananaReq](docs/BananaReq.md)
|
||||
- [capitalization.Capitalization](docs/Capitalization.md)
|
||||
- [cat.Cat](docs/Cat.md)
|
||||
- [cat_all_of.CatAllOf](docs/CatAllOf.md)
|
||||
@@ -138,6 +142,9 @@ Class | Method | HTTP request | Description
|
||||
- [file_schema_test_class.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||
- [foo.Foo](docs/Foo.md)
|
||||
- [format_test.FormatTest](docs/FormatTest.md)
|
||||
- [fruit.Fruit](docs/Fruit.md)
|
||||
- [fruit_req.FruitReq](docs/FruitReq.md)
|
||||
- [gm_fruit.GmFruit](docs/GmFruit.md)
|
||||
- [has_only_read_only.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [health_check_result.HealthCheckResult](docs/HealthCheckResult.md)
|
||||
- [inline_object.InlineObject](docs/InlineObject.md)
|
||||
@@ -148,6 +155,7 @@ Class | Method | HTTP request | Description
|
||||
- [inline_object5.InlineObject5](docs/InlineObject5.md)
|
||||
- [inline_response_default.InlineResponseDefault](docs/InlineResponseDefault.md)
|
||||
- [list.List](docs/List.md)
|
||||
- [mammal.Mammal](docs/Mammal.md)
|
||||
- [map_test.MapTest](docs/MapTest.md)
|
||||
- [mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [model200_response.Model200Response](docs/Model200Response.md)
|
||||
@@ -167,6 +175,8 @@ Class | Method | HTTP request | Description
|
||||
- [string_boolean_map.StringBooleanMap](docs/StringBooleanMap.md)
|
||||
- [tag.Tag](docs/Tag.md)
|
||||
- [user.User](docs/User.md)
|
||||
- [whale.Whale](docs/Whale.md)
|
||||
- [zebra.Zebra](docs/Zebra.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# apple.Apple
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**cultivar** | **str** | | [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)
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# apple_req.AppleReq
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**cultivar** | **str** | |
|
||||
**mealy** | **bool** | | [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)
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user