forked from loafle/openapi-generator-original
[python] Add option to skip client validations (#4137)
* Adds options to skip client side validations * Runs petstore.sh * Correct typo in variable name * Consistent code styling * Rerun petstore.sh * Change position of local_vars_configuration * Make code pep8 compliant
This commit is contained in:
parent
095fa719b3
commit
d71b1cf49e
@ -126,8 +126,8 @@ class {{classname}}(object):
|
|||||||
{{^isNullable}}
|
{{^isNullable}}
|
||||||
{{#required}}
|
{{#required}}
|
||||||
# verify the required parameter '{{paramName}}' is set
|
# verify the required parameter '{{paramName}}' is set
|
||||||
if ('{{paramName}}' not in local_var_params or
|
if self.api_client.client_side_validation and ('{{paramName}}' not in local_var_params or # noqa: E501
|
||||||
local_var_params['{{paramName}}'] is None):
|
local_var_params['{{paramName}}'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `{{paramName}}` when calling `{{operationId}}`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `{{paramName}}` when calling `{{operationId}}`") # noqa: E501
|
||||||
{{/required}}
|
{{/required}}
|
||||||
{{/isNullable}}
|
{{/isNullable}}
|
||||||
@ -136,35 +136,35 @@ class {{classname}}(object):
|
|||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
{{#hasValidation}}
|
{{#hasValidation}}
|
||||||
{{#maxLength}}
|
{{#maxLength}}
|
||||||
if ('{{paramName}}' in local_var_params and
|
if self.api_client.client_side_validation and ('{{paramName}}' in local_var_params and # noqa: E501
|
||||||
len(local_var_params['{{paramName}}']) > {{maxLength}}):
|
len(local_var_params['{{paramName}}']) > {{maxLength}}): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, length must be less than or equal to `{{maxLength}}`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, length must be less than or equal to `{{maxLength}}`") # noqa: E501
|
||||||
{{/maxLength}}
|
{{/maxLength}}
|
||||||
{{#minLength}}
|
{{#minLength}}
|
||||||
if ('{{paramName}}' in local_var_params and
|
if self.api_client.client_side_validation and ('{{paramName}}' in local_var_params and # noqa: E501
|
||||||
len(local_var_params['{{paramName}}']) < {{minLength}}):
|
len(local_var_params['{{paramName}}']) < {{minLength}}): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, length must be greater than or equal to `{{minLength}}`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, length must be greater than or equal to `{{minLength}}`") # noqa: E501
|
||||||
{{/minLength}}
|
{{/minLength}}
|
||||||
{{#maximum}}
|
{{#maximum}}
|
||||||
if '{{paramName}}' in local_var_params and local_var_params['{{paramName}}'] >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{maximum}}: # noqa: E501
|
if self.api_client.client_side_validation and '{{paramName}}' in local_var_params and local_var_params['{{paramName}}'] >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{maximum}}: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, must be a value less than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}`{{maximum}}`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, must be a value less than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}`{{maximum}}`") # noqa: E501
|
||||||
{{/maximum}}
|
{{/maximum}}
|
||||||
{{#minimum}}
|
{{#minimum}}
|
||||||
if '{{paramName}}' in local_var_params and local_var_params['{{paramName}}'] <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{minimum}}: # noqa: E501
|
if self.api_client.client_side_validation and '{{paramName}}' in local_var_params and local_var_params['{{paramName}}'] <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{minimum}}: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, must be a value greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}`{{minimum}}`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, must be a value greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}`{{minimum}}`") # noqa: E501
|
||||||
{{/minimum}}
|
{{/minimum}}
|
||||||
{{#pattern}}
|
{{#pattern}}
|
||||||
if '{{paramName}}' in local_var_params and not re.search(r'{{{vendorExtensions.x-regex}}}', local_var_params['{{paramName}}']{{#vendorExtensions.x-modifiers}}{{#-first}}, flags={{/-first}}re.{{.}}{{^-last}} | {{/-last}}{{/vendorExtensions.x-modifiers}}): # noqa: E501
|
if self.api_client.client_side_validation and '{{paramName}}' in local_var_params and not re.search(r'{{{vendorExtensions.x-regex}}}', local_var_params['{{paramName}}']{{#vendorExtensions.x-modifiers}}{{#-first}}, flags={{/-first}}re.{{.}}{{^-last}} | {{/-last}}{{/vendorExtensions.x-modifiers}}): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, must conform to the pattern `{{{pattern}}}`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, must conform to the pattern `{{{pattern}}}`") # noqa: E501
|
||||||
{{/pattern}}
|
{{/pattern}}
|
||||||
{{#maxItems}}
|
{{#maxItems}}
|
||||||
if ('{{paramName}}' in local_var_params and
|
if self.api_client.client_side_validation and ('{{paramName}}' in local_var_params and # noqa: E501
|
||||||
len(local_var_params['{{paramName}}']) > {{maxItems}}):
|
len(local_var_params['{{paramName}}']) > {{maxItems}}): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, number of items must be less than or equal to `{{maxItems}}`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, number of items must be less than or equal to `{{maxItems}}`") # noqa: E501
|
||||||
{{/maxItems}}
|
{{/maxItems}}
|
||||||
{{#minItems}}
|
{{#minItems}}
|
||||||
if ('{{paramName}}' in local_var_params and
|
if self.api_client.client_side_validation and ('{{paramName}}' in local_var_params and # noqa: E501
|
||||||
len(local_var_params['{{paramName}}']) < {{minItems}}):
|
len(local_var_params['{{paramName}}']) < {{minItems}}): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, number of items must be greater than or equal to `{{minItems}}`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, number of items must be greater than or equal to `{{minItems}}`") # noqa: E501
|
||||||
{{/minItems}}
|
{{/minItems}}
|
||||||
{{/hasValidation}}
|
{{/hasValidation}}
|
||||||
|
@ -72,6 +72,7 @@ class ApiClient(object):
|
|||||||
self.cookie = cookie
|
self.cookie = cookie
|
||||||
# Set default User-Agent.
|
# Set default User-Agent.
|
||||||
self.user_agent = '{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}OpenAPI-Generator/{{{packageVersion}}}/python{{/httpUserAgent}}'
|
self.user_agent = '{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}OpenAPI-Generator/{{{packageVersion}}}/python{{/httpUserAgent}}'
|
||||||
|
self.client_side_validation = configuration.client_side_validation
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
if self._pool:
|
if self._pool:
|
||||||
|
@ -149,6 +149,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|||||||
self.retries = None
|
self.retries = None
|
||||||
"""Adding retries to override urllib3 default value 3
|
"""Adding retries to override urllib3 default value 3
|
||||||
"""
|
"""
|
||||||
|
# Disable client side validation
|
||||||
|
self.client_side_validation = True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def logger_file(self):
|
def logger_file(self):
|
||||||
|
@ -7,6 +7,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from {{packageName}}.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
{{#models}}
|
{{#models}}
|
||||||
{{#model}}
|
{{#model}}
|
||||||
@ -51,8 +53,11 @@ class {{classname}}(object):
|
|||||||
}
|
}
|
||||||
{{/discriminator}}
|
{{/discriminator}}
|
||||||
|
|
||||||
def __init__(self{{#vars}}, {{name}}={{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}}{{/vars}}): # noqa: E501
|
def __init__(self{{#vars}}, {{name}}={{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}}{{/vars}}, local_vars_configuration=None): # noqa: E501
|
||||||
"""{{classname}} - a model defined in OpenAPI""" # noqa: E501
|
"""{{classname}} - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
{{#vars}}{{#-first}}
|
{{#vars}}{{#-first}}
|
||||||
{{/-first}}
|
{{/-first}}
|
||||||
self._{{name}} = None
|
self._{{name}} = None
|
||||||
@ -101,7 +106,7 @@ class {{classname}}(object):
|
|||||||
"""
|
"""
|
||||||
{{^isNullable}}
|
{{^isNullable}}
|
||||||
{{#required}}
|
{{#required}}
|
||||||
if {{name}} is None:
|
if self.local_vars_configuration.client_side_validation and {{name}} is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `{{name}}`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `{{name}}`, must not be `None`") # noqa: E501
|
||||||
{{/required}}
|
{{/required}}
|
||||||
{{/isNullable}}
|
{{/isNullable}}
|
||||||
@ -109,7 +114,8 @@ class {{classname}}(object):
|
|||||||
{{#isContainer}}
|
{{#isContainer}}
|
||||||
allowed_values = [{{#isNullable}}None,{{/isNullable}}{{#allowableValues}}{{#values}}{{#items.isString}}"{{/items.isString}}{{{this}}}{{#items.isString}}"{{/items.isString}}{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}] # noqa: E501
|
allowed_values = [{{#isNullable}}None,{{/isNullable}}{{#allowableValues}}{{#values}}{{#items.isString}}"{{/items.isString}}{{{this}}}{{#items.isString}}"{{/items.isString}}{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}] # noqa: E501
|
||||||
{{#isListContainer}}
|
{{#isListContainer}}
|
||||||
if not set({{{name}}}).issubset(set(allowed_values)):
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
not set({{{name}}}).issubset(set(allowed_values))):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid values for `{{{name}}}` [{0}], must be a subset of [{1}]" # noqa: E501
|
"Invalid values for `{{{name}}}` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||||
.format(", ".join(map(str, set({{{name}}}) - set(allowed_values))), # noqa: E501
|
.format(", ".join(map(str, set({{{name}}}) - set(allowed_values))), # noqa: E501
|
||||||
@ -117,7 +123,8 @@ class {{classname}}(object):
|
|||||||
)
|
)
|
||||||
{{/isListContainer}}
|
{{/isListContainer}}
|
||||||
{{#isMapContainer}}
|
{{#isMapContainer}}
|
||||||
if not set({{{name}}}.keys()).issubset(set(allowed_values)):
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
not set({{{name}}}.keys()).issubset(set(allowed_values))):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid keys in `{{{name}}}` [{0}], must be a subset of [{1}]" # noqa: E501
|
"Invalid keys in `{{{name}}}` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||||
.format(", ".join(map(str, set({{{name}}}.keys()) - set(allowed_values))), # noqa: E501
|
.format(", ".join(map(str, set({{{name}}}.keys()) - set(allowed_values))), # noqa: E501
|
||||||
@ -127,7 +134,7 @@ class {{classname}}(object):
|
|||||||
{{/isContainer}}
|
{{/isContainer}}
|
||||||
{{^isContainer}}
|
{{^isContainer}}
|
||||||
allowed_values = [{{#isNullable}}None,{{/isNullable}}{{#allowableValues}}{{#values}}{{#isString}}"{{/isString}}{{{this}}}{{#isString}}"{{/isString}}{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}] # noqa: E501
|
allowed_values = [{{#isNullable}}None,{{/isNullable}}{{#allowableValues}}{{#values}}{{#isString}}"{{/isString}}{{{this}}}{{#isString}}"{{/isString}}{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}] # noqa: E501
|
||||||
if {{{name}}} not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and {{{name}}} not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `{{{name}}}` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `{{{name}}}` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format({{{name}}}, allowed_values)
|
.format({{{name}}}, allowed_values)
|
||||||
@ -137,31 +144,38 @@ class {{classname}}(object):
|
|||||||
{{^isEnum}}
|
{{^isEnum}}
|
||||||
{{#hasValidation}}
|
{{#hasValidation}}
|
||||||
{{#maxLength}}
|
{{#maxLength}}
|
||||||
if {{name}} is not None and len({{name}}) > {{maxLength}}:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
{{name}} is not None and len({{name}}) > {{maxLength}}):
|
||||||
raise ValueError("Invalid value for `{{name}}`, length must be less than or equal to `{{maxLength}}`") # noqa: E501
|
raise ValueError("Invalid value for `{{name}}`, length must be less than or equal to `{{maxLength}}`") # noqa: E501
|
||||||
{{/maxLength}}
|
{{/maxLength}}
|
||||||
{{#minLength}}
|
{{#minLength}}
|
||||||
if {{name}} is not None and len({{name}}) < {{minLength}}:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
{{name}} is not None and len({{name}}) < {{minLength}}):
|
||||||
raise ValueError("Invalid value for `{{name}}`, length must be greater than or equal to `{{minLength}}`") # noqa: E501
|
raise ValueError("Invalid value for `{{name}}`, length must be greater than or equal to `{{minLength}}`") # noqa: E501
|
||||||
{{/minLength}}
|
{{/minLength}}
|
||||||
{{#maximum}}
|
{{#maximum}}
|
||||||
if {{name}} is not None and {{name}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{maximum}}: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
{{name}} is not None and {{name}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{maximum}}): # noqa: E501
|
||||||
raise ValueError("Invalid value for `{{name}}`, must be a value less than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}`{{maximum}}`") # noqa: E501
|
raise ValueError("Invalid value for `{{name}}`, must be a value less than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}`{{maximum}}`") # noqa: E501
|
||||||
{{/maximum}}
|
{{/maximum}}
|
||||||
{{#minimum}}
|
{{#minimum}}
|
||||||
if {{name}} is not None and {{name}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{minimum}}: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
{{name}} is not None and {{name}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{minimum}}): # noqa: E501
|
||||||
raise ValueError("Invalid value for `{{name}}`, must be a value greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}`{{minimum}}`") # noqa: E501
|
raise ValueError("Invalid value for `{{name}}`, must be a value greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}`{{minimum}}`") # noqa: E501
|
||||||
{{/minimum}}
|
{{/minimum}}
|
||||||
{{#pattern}}
|
{{#pattern}}
|
||||||
if {{name}} is not None and not re.search(r'{{{vendorExtensions.x-regex}}}', {{name}}{{#vendorExtensions.x-modifiers}}{{#-first}}, flags={{/-first}}re.{{.}}{{^-last}} | {{/-last}}{{/vendorExtensions.x-modifiers}}): # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
{{name}} is not None and not re.search(r'{{{vendorExtensions.x-regex}}}', {{name}}{{#vendorExtensions.x-modifiers}}{{#-first}}, flags={{/-first}}re.{{.}}{{^-last}} | {{/-last}}{{/vendorExtensions.x-modifiers}})): # noqa: E501
|
||||||
raise ValueError(r"Invalid value for `{{name}}`, must be a follow pattern or equal to `{{{pattern}}}`") # noqa: E501
|
raise ValueError(r"Invalid value for `{{name}}`, must be a follow pattern or equal to `{{{pattern}}}`") # noqa: E501
|
||||||
{{/pattern}}
|
{{/pattern}}
|
||||||
{{#maxItems}}
|
{{#maxItems}}
|
||||||
if {{name}} is not None and len({{name}}) > {{maxItems}}:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
{{name}} is not None and len({{name}}) > {{maxItems}}):
|
||||||
raise ValueError("Invalid value for `{{name}}`, number of items must be less than or equal to `{{maxItems}}`") # noqa: E501
|
raise ValueError("Invalid value for `{{name}}`, number of items must be less than or equal to `{{maxItems}}`") # noqa: E501
|
||||||
{{/maxItems}}
|
{{/maxItems}}
|
||||||
{{#minItems}}
|
{{#minItems}}
|
||||||
if {{name}} is not None and len({{name}}) < {{minItems}}:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
{{name}} is not None and len({{name}}) < {{minItems}}):
|
||||||
raise ValueError("Invalid value for `{{name}}`, number of items must be greater than or equal to `{{minItems}}`") # noqa: E501
|
raise ValueError("Invalid value for `{{name}}`, number of items must be greater than or equal to `{{minItems}}`") # noqa: E501
|
||||||
{{/minItems}}
|
{{/minItems}}
|
||||||
{{/hasValidation}}
|
{{/hasValidation}}
|
||||||
@ -215,10 +229,13 @@ class {{classname}}(object):
|
|||||||
if not isinstance(other, {{classname}}):
|
if not isinstance(other, {{classname}}):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, {{classname}}):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
{{/model}}
|
{{/model}}
|
||||||
{{/models}}
|
{{/models}}
|
||||||
|
@ -103,8 +103,8 @@ class AnotherFakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `call_123_test_special_tags`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `call_123_test_special_tags`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -103,8 +103,8 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'xml_item' is set
|
# verify the required parameter 'xml_item' is set
|
||||||
if ('xml_item' not in local_var_params or
|
if self.api_client.client_side_validation and ('xml_item' not in local_var_params or # noqa: E501
|
||||||
local_var_params['xml_item'] is None):
|
local_var_params['xml_item'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `xml_item` when calling `create_xml_item`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `xml_item` when calling `create_xml_item`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -627,8 +627,8 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `test_body_with_file_schema`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `test_body_with_file_schema`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -735,12 +735,12 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'query' is set
|
# verify the required parameter 'query' is set
|
||||||
if ('query' not in local_var_params or
|
if self.api_client.client_side_validation and ('query' not in local_var_params or # noqa: E501
|
||||||
local_var_params['query'] is None):
|
local_var_params['query'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `query` when calling `test_body_with_query_params`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `query` when calling `test_body_with_query_params`") # noqa: E501
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `test_body_with_query_params`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `test_body_with_query_params`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -849,8 +849,8 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `test_client_model`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `test_client_model`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -987,49 +987,49 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'number' is set
|
# verify the required parameter 'number' is set
|
||||||
if ('number' not in local_var_params or
|
if self.api_client.client_side_validation and ('number' not in local_var_params or # noqa: E501
|
||||||
local_var_params['number'] is None):
|
local_var_params['number'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `number` when calling `test_endpoint_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `number` when calling `test_endpoint_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'double' is set
|
# verify the required parameter 'double' is set
|
||||||
if ('double' not in local_var_params or
|
if self.api_client.client_side_validation and ('double' not in local_var_params or # noqa: E501
|
||||||
local_var_params['double'] is None):
|
local_var_params['double'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `double` when calling `test_endpoint_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `double` when calling `test_endpoint_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'pattern_without_delimiter' is set
|
# verify the required parameter 'pattern_without_delimiter' is set
|
||||||
if ('pattern_without_delimiter' not in local_var_params or
|
if self.api_client.client_side_validation and ('pattern_without_delimiter' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pattern_without_delimiter'] is None):
|
local_var_params['pattern_without_delimiter'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'byte' is set
|
# verify the required parameter 'byte' is set
|
||||||
if ('byte' not in local_var_params or
|
if self.api_client.client_side_validation and ('byte' not in local_var_params or # noqa: E501
|
||||||
local_var_params['byte'] is None):
|
local_var_params['byte'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `byte` when calling `test_endpoint_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `byte` when calling `test_endpoint_parameters`") # noqa: E501
|
||||||
|
|
||||||
if 'number' in local_var_params and local_var_params['number'] > 543.2: # noqa: E501
|
if self.api_client.client_side_validation and 'number' in local_var_params and local_var_params['number'] > 543.2: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value less than or equal to `543.2`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value less than or equal to `543.2`") # noqa: E501
|
||||||
if 'number' in local_var_params and local_var_params['number'] < 32.1: # noqa: E501
|
if self.api_client.client_side_validation and 'number' in local_var_params and local_var_params['number'] < 32.1: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value greater than or equal to `32.1`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value greater than or equal to `32.1`") # noqa: E501
|
||||||
if 'double' in local_var_params and local_var_params['double'] > 123.4: # noqa: E501
|
if self.api_client.client_side_validation and 'double' in local_var_params and local_var_params['double'] > 123.4: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||||
if 'double' in local_var_params and local_var_params['double'] < 67.8: # noqa: E501
|
if self.api_client.client_side_validation and 'double' in local_var_params and local_var_params['double'] < 67.8: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||||
if 'pattern_without_delimiter' in local_var_params and not re.search(r'^[A-Z].*', local_var_params['pattern_without_delimiter']): # noqa: E501
|
if self.api_client.client_side_validation and 'pattern_without_delimiter' in local_var_params and not re.search(r'^[A-Z].*', local_var_params['pattern_without_delimiter']): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
||||||
if 'integer' in local_var_params and local_var_params['integer'] > 100: # noqa: E501
|
if self.api_client.client_side_validation and 'integer' in local_var_params and local_var_params['integer'] > 100: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
||||||
if 'integer' in local_var_params and local_var_params['integer'] < 10: # noqa: E501
|
if self.api_client.client_side_validation and 'integer' in local_var_params and local_var_params['integer'] < 10: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value greater than or equal to `10`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value greater than or equal to `10`") # noqa: E501
|
||||||
if 'int32' in local_var_params and local_var_params['int32'] > 200: # noqa: E501
|
if self.api_client.client_side_validation and 'int32' in local_var_params and local_var_params['int32'] > 200: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value less than or equal to `200`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value less than or equal to `200`") # noqa: E501
|
||||||
if 'int32' in local_var_params and local_var_params['int32'] < 20: # noqa: E501
|
if self.api_client.client_side_validation and 'int32' in local_var_params and local_var_params['int32'] < 20: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
||||||
if 'float' in local_var_params and local_var_params['float'] > 987.6: # noqa: E501
|
if self.api_client.client_side_validation and 'float' in local_var_params and local_var_params['float'] > 987.6: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||||
if 'string' in local_var_params and not re.search(r'[a-z]', local_var_params['string'], flags=re.IGNORECASE): # noqa: E501
|
if self.api_client.client_side_validation and 'string' in local_var_params and not re.search(r'[a-z]', local_var_params['string'], flags=re.IGNORECASE): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
||||||
if ('password' in local_var_params and
|
if self.api_client.client_side_validation and ('password' in local_var_params and # noqa: E501
|
||||||
len(local_var_params['password']) > 64):
|
len(local_var_params['password']) > 64): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be less than or equal to `64`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be less than or equal to `64`") # noqa: E501
|
||||||
if ('password' in local_var_params and
|
if self.api_client.client_side_validation and ('password' in local_var_params and # noqa: E501
|
||||||
len(local_var_params['password']) < 10):
|
len(local_var_params['password']) < 10): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be greater than or equal to `10`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be greater than or equal to `10`") # noqa: E501
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
|
||||||
@ -1306,16 +1306,16 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'required_string_group' is set
|
# verify the required parameter 'required_string_group' is set
|
||||||
if ('required_string_group' not in local_var_params or
|
if self.api_client.client_side_validation and ('required_string_group' not in local_var_params or # noqa: E501
|
||||||
local_var_params['required_string_group'] is None):
|
local_var_params['required_string_group'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `required_string_group` when calling `test_group_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `required_string_group` when calling `test_group_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'required_boolean_group' is set
|
# verify the required parameter 'required_boolean_group' is set
|
||||||
if ('required_boolean_group' not in local_var_params or
|
if self.api_client.client_side_validation and ('required_boolean_group' not in local_var_params or # noqa: E501
|
||||||
local_var_params['required_boolean_group'] is None):
|
local_var_params['required_boolean_group'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `required_boolean_group` when calling `test_group_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `required_boolean_group` when calling `test_group_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'required_int64_group' is set
|
# verify the required parameter 'required_int64_group' is set
|
||||||
if ('required_int64_group' not in local_var_params or
|
if self.api_client.client_side_validation and ('required_int64_group' not in local_var_params or # noqa: E501
|
||||||
local_var_params['required_int64_group'] is None):
|
local_var_params['required_int64_group'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `required_int64_group` when calling `test_group_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `required_int64_group` when calling `test_group_parameters`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -1426,8 +1426,8 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'param' is set
|
# verify the required parameter 'param' is set
|
||||||
if ('param' not in local_var_params or
|
if self.api_client.client_side_validation and ('param' not in local_var_params or # noqa: E501
|
||||||
local_var_params['param'] is None):
|
local_var_params['param'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `param` when calling `test_inline_additional_properties`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `param` when calling `test_inline_additional_properties`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -1534,12 +1534,12 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'param' is set
|
# verify the required parameter 'param' is set
|
||||||
if ('param' not in local_var_params or
|
if self.api_client.client_side_validation and ('param' not in local_var_params or # noqa: E501
|
||||||
local_var_params['param'] is None):
|
local_var_params['param'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `param` when calling `test_json_form_data`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `param` when calling `test_json_form_data`") # noqa: E501
|
||||||
# verify the required parameter 'param2' is set
|
# verify the required parameter 'param2' is set
|
||||||
if ('param2' not in local_var_params or
|
if self.api_client.client_side_validation and ('param2' not in local_var_params or # noqa: E501
|
||||||
local_var_params['param2'] is None):
|
local_var_params['param2'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `param2` when calling `test_json_form_data`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `param2` when calling `test_json_form_data`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -1656,24 +1656,24 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pipe' is set
|
# verify the required parameter 'pipe' is set
|
||||||
if ('pipe' not in local_var_params or
|
if self.api_client.client_side_validation and ('pipe' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pipe'] is None):
|
local_var_params['pipe'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pipe` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pipe` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
# verify the required parameter 'ioutil' is set
|
# verify the required parameter 'ioutil' is set
|
||||||
if ('ioutil' not in local_var_params or
|
if self.api_client.client_side_validation and ('ioutil' not in local_var_params or # noqa: E501
|
||||||
local_var_params['ioutil'] is None):
|
local_var_params['ioutil'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `ioutil` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `ioutil` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
# verify the required parameter 'http' is set
|
# verify the required parameter 'http' is set
|
||||||
if ('http' not in local_var_params or
|
if self.api_client.client_side_validation and ('http' not in local_var_params or # noqa: E501
|
||||||
local_var_params['http'] is None):
|
local_var_params['http'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `http` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `http` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
# verify the required parameter 'url' is set
|
# verify the required parameter 'url' is set
|
||||||
if ('url' not in local_var_params or
|
if self.api_client.client_side_validation and ('url' not in local_var_params or # noqa: E501
|
||||||
local_var_params['url'] is None):
|
local_var_params['url'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `url` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `url` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
# verify the required parameter 'context' is set
|
# verify the required parameter 'context' is set
|
||||||
if ('context' not in local_var_params or
|
if self.api_client.client_side_validation and ('context' not in local_var_params or # noqa: E501
|
||||||
local_var_params['context'] is None):
|
local_var_params['context'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `context` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `context` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -103,8 +103,8 @@ class FakeClassnameTags123Api(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `test_classname`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `test_classname`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -101,8 +101,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `add_pet`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `add_pet`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -209,8 +209,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `delete_pet`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `delete_pet`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -315,8 +315,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'status' is set
|
# verify the required parameter 'status' is set
|
||||||
if ('status' not in local_var_params or
|
if self.api_client.client_side_validation and ('status' not in local_var_params or # noqa: E501
|
||||||
local_var_params['status'] is None):
|
local_var_params['status'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `status` when calling `find_pets_by_status`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `status` when calling `find_pets_by_status`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -424,8 +424,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'tags' is set
|
# verify the required parameter 'tags' is set
|
||||||
if ('tags' not in local_var_params or
|
if self.api_client.client_side_validation and ('tags' not in local_var_params or # noqa: E501
|
||||||
local_var_params['tags'] is None):
|
local_var_params['tags'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `tags` when calling `find_pets_by_tags`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `tags` when calling `find_pets_by_tags`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -533,8 +533,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `get_pet_by_id`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `get_pet_by_id`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -639,8 +639,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `update_pet`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `update_pet`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -749,8 +749,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `update_pet_with_form`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `update_pet_with_form`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -863,8 +863,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -981,12 +981,12 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file_with_required_file`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file_with_required_file`") # noqa: E501
|
||||||
# verify the required parameter 'required_file' is set
|
# verify the required parameter 'required_file' is set
|
||||||
if ('required_file' not in local_var_params or
|
if self.api_client.client_side_validation and ('required_file' not in local_var_params or # noqa: E501
|
||||||
local_var_params['required_file'] is None):
|
local_var_params['required_file'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `required_file` when calling `upload_file_with_required_file`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `required_file` when calling `upload_file_with_required_file`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -103,8 +103,8 @@ class StoreApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'order_id' is set
|
# verify the required parameter 'order_id' is set
|
||||||
if ('order_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('order_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['order_id'] is None):
|
local_var_params['order_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `order_id` when calling `delete_order`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `order_id` when calling `delete_order`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -307,13 +307,13 @@ class StoreApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'order_id' is set
|
# verify the required parameter 'order_id' is set
|
||||||
if ('order_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('order_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['order_id'] is None):
|
local_var_params['order_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `order_id` when calling `get_order_by_id`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `order_id` when calling `get_order_by_id`") # noqa: E501
|
||||||
|
|
||||||
if 'order_id' in local_var_params and local_var_params['order_id'] > 5: # noqa: E501
|
if self.api_client.client_side_validation and 'order_id' in local_var_params and local_var_params['order_id'] > 5: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value less than or equal to `5`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value less than or equal to `5`") # noqa: E501
|
||||||
if 'order_id' in local_var_params and local_var_params['order_id'] < 1: # noqa: E501
|
if self.api_client.client_side_validation and 'order_id' in local_var_params and local_var_params['order_id'] < 1: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value greater than or equal to `1`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value greater than or equal to `1`") # noqa: E501
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
|
||||||
@ -417,8 +417,8 @@ class StoreApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `place_order`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `place_order`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -103,8 +103,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `create_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `create_user`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -205,8 +205,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `create_users_with_array_input`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `create_users_with_array_input`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -307,8 +307,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `create_users_with_list_input`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `create_users_with_list_input`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -411,8 +411,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'username' is set
|
# verify the required parameter 'username' is set
|
||||||
if ('username' not in local_var_params or
|
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||||
local_var_params['username'] is None):
|
local_var_params['username'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `username` when calling `delete_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `username` when calling `delete_user`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -513,8 +513,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'username' is set
|
# verify the required parameter 'username' is set
|
||||||
if ('username' not in local_var_params or
|
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||||
local_var_params['username'] is None):
|
local_var_params['username'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `username` when calling `get_user_by_name`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `username` when calling `get_user_by_name`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -621,12 +621,12 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'username' is set
|
# verify the required parameter 'username' is set
|
||||||
if ('username' not in local_var_params or
|
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||||
local_var_params['username'] is None):
|
local_var_params['username'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `username` when calling `login_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `username` when calling `login_user`") # noqa: E501
|
||||||
# verify the required parameter 'password' is set
|
# verify the required parameter 'password' is set
|
||||||
if ('password' not in local_var_params or
|
if self.api_client.client_side_validation and ('password' not in local_var_params or # noqa: E501
|
||||||
local_var_params['password'] is None):
|
local_var_params['password'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `password` when calling `login_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `password` when calling `login_user`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -831,12 +831,12 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'username' is set
|
# verify the required parameter 'username' is set
|
||||||
if ('username' not in local_var_params or
|
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||||
local_var_params['username'] is None):
|
local_var_params['username'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `username` when calling `update_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `username` when calling `update_user`") # noqa: E501
|
||||||
# verify the required parameter 'body' is set
|
# verify the required parameter 'body' is set
|
||||||
if ('body' not in local_var_params or
|
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['body'] is None):
|
local_var_params['body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `body` when calling `update_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `body` when calling `update_user`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -77,6 +77,7 @@ class ApiClient(object):
|
|||||||
self.cookie = cookie
|
self.cookie = cookie
|
||||||
# Set default User-Agent.
|
# Set default User-Agent.
|
||||||
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
|
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
|
||||||
|
self.client_side_validation = configuration.client_side_validation
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
if self._pool:
|
if self._pool:
|
||||||
|
@ -138,6 +138,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|||||||
self.retries = None
|
self.retries = None
|
||||||
"""Adding retries to override urllib3 default value 3
|
"""Adding retries to override urllib3 default value 3
|
||||||
"""
|
"""
|
||||||
|
# Disable client side validation
|
||||||
|
self.client_side_validation = True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def logger_file(self):
|
def logger_file(self):
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesAnyType(object):
|
class AdditionalPropertiesAnyType(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class AdditionalPropertiesAnyType(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None): # noqa: E501
|
def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesAnyType - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesAnyType - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class AdditionalPropertiesAnyType(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesAnyType):
|
if not isinstance(other, AdditionalPropertiesAnyType):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesAnyType):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesArray(object):
|
class AdditionalPropertiesArray(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class AdditionalPropertiesArray(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None): # noqa: E501
|
def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesArray - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesArray - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class AdditionalPropertiesArray(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesArray):
|
if not isinstance(other, AdditionalPropertiesArray):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesArray):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesBoolean(object):
|
class AdditionalPropertiesBoolean(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class AdditionalPropertiesBoolean(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None): # noqa: E501
|
def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesBoolean - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesBoolean - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class AdditionalPropertiesBoolean(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesBoolean):
|
if not isinstance(other, AdditionalPropertiesBoolean):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesBoolean):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesClass(object):
|
class AdditionalPropertiesClass(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -58,8 +60,11 @@ class AdditionalPropertiesClass(object):
|
|||||||
'anytype_3': 'anytype_3'
|
'anytype_3': 'anytype_3'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, map_string=None, map_number=None, map_integer=None, map_boolean=None, map_array_integer=None, map_array_anytype=None, map_map_string=None, map_map_anytype=None, anytype_1=None, anytype_2=None, anytype_3=None): # noqa: E501
|
def __init__(self, map_string=None, map_number=None, map_integer=None, map_boolean=None, map_array_integer=None, map_array_anytype=None, map_map_string=None, map_map_anytype=None, anytype_1=None, anytype_2=None, anytype_3=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._map_string = None
|
self._map_string = None
|
||||||
self._map_number = None
|
self._map_number = None
|
||||||
@ -365,8 +370,11 @@ class AdditionalPropertiesClass(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesClass):
|
if not isinstance(other, AdditionalPropertiesClass):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesClass):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesInteger(object):
|
class AdditionalPropertiesInteger(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class AdditionalPropertiesInteger(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None): # noqa: E501
|
def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesInteger - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesInteger - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class AdditionalPropertiesInteger(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesInteger):
|
if not isinstance(other, AdditionalPropertiesInteger):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesInteger):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesNumber(object):
|
class AdditionalPropertiesNumber(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class AdditionalPropertiesNumber(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None): # noqa: E501
|
def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesNumber - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesNumber - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class AdditionalPropertiesNumber(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesNumber):
|
if not isinstance(other, AdditionalPropertiesNumber):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesNumber):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesObject(object):
|
class AdditionalPropertiesObject(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class AdditionalPropertiesObject(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None): # noqa: E501
|
def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesObject - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesObject - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class AdditionalPropertiesObject(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesObject):
|
if not isinstance(other, AdditionalPropertiesObject):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesObject):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesString(object):
|
class AdditionalPropertiesString(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class AdditionalPropertiesString(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None): # noqa: E501
|
def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesString - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesString - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class AdditionalPropertiesString(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesString):
|
if not isinstance(other, AdditionalPropertiesString):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesString):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Animal(object):
|
class Animal(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -45,8 +47,11 @@ class Animal(object):
|
|||||||
'Cat': 'Cat'
|
'Cat': 'Cat'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, class_name=None, color='red'): # noqa: E501
|
def __init__(self, class_name=None, color='red', local_vars_configuration=None): # noqa: E501
|
||||||
"""Animal - a model defined in OpenAPI""" # noqa: E501
|
"""Animal - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._class_name = None
|
self._class_name = None
|
||||||
self._color = None
|
self._color = None
|
||||||
@ -74,7 +79,7 @@ class Animal(object):
|
|||||||
:param class_name: The class_name of this Animal. # noqa: E501
|
:param class_name: The class_name of this Animal. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if class_name is None:
|
if self.local_vars_configuration.client_side_validation and class_name is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `class_name`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `class_name`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._class_name = class_name
|
self._class_name = class_name
|
||||||
@ -143,8 +148,11 @@ class Animal(object):
|
|||||||
if not isinstance(other, Animal):
|
if not isinstance(other, Animal):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Animal):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ApiResponse(object):
|
class ApiResponse(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -42,8 +44,11 @@ class ApiResponse(object):
|
|||||||
'message': 'message'
|
'message': 'message'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, code=None, type=None, message=None): # noqa: E501
|
def __init__(self, code=None, type=None, message=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ApiResponse - a model defined in OpenAPI""" # noqa: E501
|
"""ApiResponse - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._code = None
|
self._code = None
|
||||||
self._type = None
|
self._type = None
|
||||||
@ -157,8 +162,11 @@ class ApiResponse(object):
|
|||||||
if not isinstance(other, ApiResponse):
|
if not isinstance(other, ApiResponse):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ApiResponse):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ArrayOfArrayOfNumberOnly(object):
|
class ArrayOfArrayOfNumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class ArrayOfArrayOfNumberOnly(object):
|
|||||||
'array_array_number': 'ArrayArrayNumber'
|
'array_array_number': 'ArrayArrayNumber'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_array_number=None): # noqa: E501
|
def __init__(self, array_array_number=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._array_array_number = None
|
self._array_array_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class ArrayOfArrayOfNumberOnly(object):
|
|||||||
if not isinstance(other, ArrayOfArrayOfNumberOnly):
|
if not isinstance(other, ArrayOfArrayOfNumberOnly):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ArrayOfArrayOfNumberOnly):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ArrayOfNumberOnly(object):
|
class ArrayOfNumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class ArrayOfNumberOnly(object):
|
|||||||
'array_number': 'ArrayNumber'
|
'array_number': 'ArrayNumber'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_number=None): # noqa: E501
|
def __init__(self, array_number=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
"""ArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._array_number = None
|
self._array_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class ArrayOfNumberOnly(object):
|
|||||||
if not isinstance(other, ArrayOfNumberOnly):
|
if not isinstance(other, ArrayOfNumberOnly):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ArrayOfNumberOnly):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ArrayTest(object):
|
class ArrayTest(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -42,8 +44,11 @@ class ArrayTest(object):
|
|||||||
'array_array_of_model': 'array_array_of_model'
|
'array_array_of_model': 'array_array_of_model'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None): # noqa: E501
|
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ArrayTest - a model defined in OpenAPI""" # noqa: E501
|
"""ArrayTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._array_of_string = None
|
self._array_of_string = None
|
||||||
self._array_array_of_integer = None
|
self._array_array_of_integer = None
|
||||||
@ -157,8 +162,11 @@ class ArrayTest(object):
|
|||||||
if not isinstance(other, ArrayTest):
|
if not isinstance(other, ArrayTest):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ArrayTest):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Capitalization(object):
|
class Capitalization(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -48,8 +50,11 @@ class Capitalization(object):
|
|||||||
'att_name': 'ATT_NAME'
|
'att_name': 'ATT_NAME'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None): # noqa: E501
|
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Capitalization - a model defined in OpenAPI""" # noqa: E501
|
"""Capitalization - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._small_camel = None
|
self._small_camel = None
|
||||||
self._capital_camel = None
|
self._capital_camel = None
|
||||||
@ -237,8 +242,11 @@ class Capitalization(object):
|
|||||||
if not isinstance(other, Capitalization):
|
if not isinstance(other, Capitalization):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Capitalization):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Cat(object):
|
class Cat(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class Cat(object):
|
|||||||
'declawed': 'declawed'
|
'declawed': 'declawed'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, declawed=None): # noqa: E501
|
def __init__(self, declawed=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Cat - a model defined in OpenAPI""" # noqa: E501
|
"""Cat - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._declawed = None
|
self._declawed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class Cat(object):
|
|||||||
if not isinstance(other, Cat):
|
if not isinstance(other, Cat):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Cat):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class CatAllOf(object):
|
class CatAllOf(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class CatAllOf(object):
|
|||||||
'declawed': 'declawed'
|
'declawed': 'declawed'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, declawed=None): # noqa: E501
|
def __init__(self, declawed=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""CatAllOf - a model defined in OpenAPI""" # noqa: E501
|
"""CatAllOf - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._declawed = None
|
self._declawed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class CatAllOf(object):
|
|||||||
if not isinstance(other, CatAllOf):
|
if not isinstance(other, CatAllOf):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, CatAllOf):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Category(object):
|
class Category(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class Category(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, name='default-name'): # noqa: E501
|
def __init__(self, id=None, name='default-name', local_vars_configuration=None): # noqa: E501
|
||||||
"""Category - a model defined in OpenAPI""" # noqa: E501
|
"""Category - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._name = None
|
self._name = None
|
||||||
@ -90,7 +95,7 @@ class Category(object):
|
|||||||
:param name: The name of this Category. # noqa: E501
|
:param name: The name of this Category. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if name is None:
|
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
@ -132,8 +137,11 @@ class Category(object):
|
|||||||
if not isinstance(other, Category):
|
if not isinstance(other, Category):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Category):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ClassModel(object):
|
class ClassModel(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class ClassModel(object):
|
|||||||
'_class': '_class'
|
'_class': '_class'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _class=None): # noqa: E501
|
def __init__(self, _class=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ClassModel - a model defined in OpenAPI""" # noqa: E501
|
"""ClassModel - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self.__class = None
|
self.__class = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class ClassModel(object):
|
|||||||
if not isinstance(other, ClassModel):
|
if not isinstance(other, ClassModel):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ClassModel):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class Client(object):
|
|||||||
'client': 'client'
|
'client': 'client'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, client=None): # noqa: E501
|
def __init__(self, client=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Client - a model defined in OpenAPI""" # noqa: E501
|
"""Client - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._client = None
|
self._client = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class Client(object):
|
|||||||
if not isinstance(other, Client):
|
if not isinstance(other, Client):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Client):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Dog(object):
|
class Dog(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class Dog(object):
|
|||||||
'breed': 'breed'
|
'breed': 'breed'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, breed=None): # noqa: E501
|
def __init__(self, breed=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Dog - a model defined in OpenAPI""" # noqa: E501
|
"""Dog - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._breed = None
|
self._breed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class Dog(object):
|
|||||||
if not isinstance(other, Dog):
|
if not isinstance(other, Dog):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Dog):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class DogAllOf(object):
|
class DogAllOf(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class DogAllOf(object):
|
|||||||
'breed': 'breed'
|
'breed': 'breed'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, breed=None): # noqa: E501
|
def __init__(self, breed=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""DogAllOf - a model defined in OpenAPI""" # noqa: E501
|
"""DogAllOf - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._breed = None
|
self._breed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class DogAllOf(object):
|
|||||||
if not isinstance(other, DogAllOf):
|
if not isinstance(other, DogAllOf):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, DogAllOf):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class EnumArrays(object):
|
class EnumArrays(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class EnumArrays(object):
|
|||||||
'array_enum': 'array_enum'
|
'array_enum': 'array_enum'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, just_symbol=None, array_enum=None): # noqa: E501
|
def __init__(self, just_symbol=None, array_enum=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""EnumArrays - a model defined in OpenAPI""" # noqa: E501
|
"""EnumArrays - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._just_symbol = None
|
self._just_symbol = None
|
||||||
self._array_enum = None
|
self._array_enum = None
|
||||||
@ -71,7 +76,7 @@ class EnumArrays(object):
|
|||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
allowed_values = [">=", "$"] # noqa: E501
|
allowed_values = [">=", "$"] # noqa: E501
|
||||||
if just_symbol not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and just_symbol not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `just_symbol` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `just_symbol` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(just_symbol, allowed_values)
|
.format(just_symbol, allowed_values)
|
||||||
@ -98,7 +103,8 @@ class EnumArrays(object):
|
|||||||
:type: list[str]
|
:type: list[str]
|
||||||
"""
|
"""
|
||||||
allowed_values = ["fish", "crab"] # noqa: E501
|
allowed_values = ["fish", "crab"] # noqa: E501
|
||||||
if not set(array_enum).issubset(set(allowed_values)):
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
not set(array_enum).issubset(set(allowed_values))):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid values for `array_enum` [{0}], must be a subset of [{1}]" # noqa: E501
|
"Invalid values for `array_enum` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||||
.format(", ".join(map(str, set(array_enum) - set(allowed_values))), # noqa: E501
|
.format(", ".join(map(str, set(array_enum) - set(allowed_values))), # noqa: E501
|
||||||
@ -144,8 +150,11 @@ class EnumArrays(object):
|
|||||||
if not isinstance(other, EnumArrays):
|
if not isinstance(other, EnumArrays):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, EnumArrays):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class EnumClass(object):
|
class EnumClass(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -43,8 +45,11 @@ class EnumClass(object):
|
|||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self, local_vars_configuration=None): # noqa: E501
|
||||||
"""EnumClass - a model defined in OpenAPI""" # noqa: E501
|
"""EnumClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
@ -84,8 +89,11 @@ class EnumClass(object):
|
|||||||
if not isinstance(other, EnumClass):
|
if not isinstance(other, EnumClass):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, EnumClass):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class EnumTest(object):
|
class EnumTest(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -46,8 +48,11 @@ class EnumTest(object):
|
|||||||
'outer_enum': 'outerEnum'
|
'outer_enum': 'outerEnum'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None): # noqa: E501
|
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""EnumTest - a model defined in OpenAPI""" # noqa: E501
|
"""EnumTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._enum_string = None
|
self._enum_string = None
|
||||||
self._enum_string_required = None
|
self._enum_string_required = None
|
||||||
@ -85,7 +90,7 @@ class EnumTest(object):
|
|||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
||||||
if enum_string not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_string not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_string` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_string` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_string, allowed_values)
|
.format(enum_string, allowed_values)
|
||||||
@ -111,10 +116,10 @@ class EnumTest(object):
|
|||||||
:param enum_string_required: The enum_string_required of this EnumTest. # noqa: E501
|
:param enum_string_required: The enum_string_required of this EnumTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if enum_string_required is None:
|
if self.local_vars_configuration.client_side_validation and enum_string_required is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `enum_string_required`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `enum_string_required`, must not be `None`") # noqa: E501
|
||||||
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
||||||
if enum_string_required not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_string_required not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_string_required` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_string_required` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_string_required, allowed_values)
|
.format(enum_string_required, allowed_values)
|
||||||
@ -141,7 +146,7 @@ class EnumTest(object):
|
|||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
allowed_values = [1, -1] # noqa: E501
|
allowed_values = [1, -1] # noqa: E501
|
||||||
if enum_integer not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_integer not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_integer` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_integer` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_integer, allowed_values)
|
.format(enum_integer, allowed_values)
|
||||||
@ -168,7 +173,7 @@ class EnumTest(object):
|
|||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
allowed_values = [1.1, -1.2] # noqa: E501
|
allowed_values = [1.1, -1.2] # noqa: E501
|
||||||
if enum_number not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_number not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_number` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_number` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_number, allowed_values)
|
.format(enum_number, allowed_values)
|
||||||
@ -234,8 +239,11 @@ class EnumTest(object):
|
|||||||
if not isinstance(other, EnumTest):
|
if not isinstance(other, EnumTest):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, EnumTest):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class File(object):
|
class File(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class File(object):
|
|||||||
'source_uri': 'sourceURI'
|
'source_uri': 'sourceURI'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, source_uri=None): # noqa: E501
|
def __init__(self, source_uri=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""File - a model defined in OpenAPI""" # noqa: E501
|
"""File - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._source_uri = None
|
self._source_uri = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -107,8 +112,11 @@ class File(object):
|
|||||||
if not isinstance(other, File):
|
if not isinstance(other, File):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, File):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class FileSchemaTestClass(object):
|
class FileSchemaTestClass(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class FileSchemaTestClass(object):
|
|||||||
'files': 'files'
|
'files': 'files'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, file=None, files=None): # noqa: E501
|
def __init__(self, file=None, files=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""FileSchemaTestClass - a model defined in OpenAPI""" # noqa: E501
|
"""FileSchemaTestClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._file = None
|
self._file = None
|
||||||
self._files = None
|
self._files = None
|
||||||
@ -131,8 +136,11 @@ class FileSchemaTestClass(object):
|
|||||||
if not isinstance(other, FileSchemaTestClass):
|
if not isinstance(other, FileSchemaTestClass):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, FileSchemaTestClass):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class FormatTest(object):
|
class FormatTest(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -64,8 +66,11 @@ class FormatTest(object):
|
|||||||
'big_decimal': 'BigDecimal'
|
'big_decimal': 'BigDecimal'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None, big_decimal=None): # noqa: E501
|
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None, big_decimal=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""FormatTest - a model defined in OpenAPI""" # noqa: E501
|
"""FormatTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._integer = None
|
self._integer = None
|
||||||
self._int32 = None
|
self._int32 = None
|
||||||
@ -126,9 +131,11 @@ class FormatTest(object):
|
|||||||
:param integer: The integer of this FormatTest. # noqa: E501
|
:param integer: The integer of this FormatTest. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if integer is not None and integer > 100: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
integer is not None and integer > 100): # noqa: E501
|
||||||
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100`") # noqa: E501
|
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100`") # noqa: E501
|
||||||
if integer is not None and integer < 10: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
integer is not None and integer < 10): # noqa: E501
|
||||||
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10`") # noqa: E501
|
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10`") # noqa: E501
|
||||||
|
|
||||||
self._integer = integer
|
self._integer = integer
|
||||||
@ -151,9 +158,11 @@ class FormatTest(object):
|
|||||||
:param int32: The int32 of this FormatTest. # noqa: E501
|
:param int32: The int32 of this FormatTest. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if int32 is not None and int32 > 200: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
int32 is not None and int32 > 200): # noqa: E501
|
||||||
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200`") # noqa: E501
|
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200`") # noqa: E501
|
||||||
if int32 is not None and int32 < 20: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
int32 is not None and int32 < 20): # noqa: E501
|
||||||
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20`") # noqa: E501
|
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20`") # noqa: E501
|
||||||
|
|
||||||
self._int32 = int32
|
self._int32 = int32
|
||||||
@ -197,11 +206,13 @@ class FormatTest(object):
|
|||||||
:param number: The number of this FormatTest. # noqa: E501
|
:param number: The number of this FormatTest. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if number is None:
|
if self.local_vars_configuration.client_side_validation and number is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
|
||||||
if number is not None and number > 543.2: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
number is not None and number > 543.2): # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`") # noqa: E501
|
||||||
if number is not None and number < 32.1: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
number is not None and number < 32.1): # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`") # noqa: E501
|
||||||
|
|
||||||
self._number = number
|
self._number = number
|
||||||
@ -224,9 +235,11 @@ class FormatTest(object):
|
|||||||
:param float: The float of this FormatTest. # noqa: E501
|
:param float: The float of this FormatTest. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if float is not None and float > 987.6: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
float is not None and float > 987.6): # noqa: E501
|
||||||
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`") # noqa: E501
|
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||||
if float is not None and float < 54.3: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
float is not None and float < 54.3): # noqa: E501
|
||||||
raise ValueError("Invalid value for `float`, must be a value greater than or equal to `54.3`") # noqa: E501
|
raise ValueError("Invalid value for `float`, must be a value greater than or equal to `54.3`") # noqa: E501
|
||||||
|
|
||||||
self._float = float
|
self._float = float
|
||||||
@ -249,9 +262,11 @@ class FormatTest(object):
|
|||||||
:param double: The double of this FormatTest. # noqa: E501
|
:param double: The double of this FormatTest. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if double is not None and double > 123.4: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
double is not None and double > 123.4): # noqa: E501
|
||||||
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`") # noqa: E501
|
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||||
if double is not None and double < 67.8: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
double is not None and double < 67.8): # noqa: E501
|
||||||
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`") # noqa: E501
|
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||||
|
|
||||||
self._double = double
|
self._double = double
|
||||||
@ -274,7 +289,8 @@ class FormatTest(object):
|
|||||||
:param string: The string of this FormatTest. # noqa: E501
|
:param string: The string of this FormatTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE): # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE)): # noqa: E501
|
||||||
raise ValueError(r"Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`") # noqa: E501
|
raise ValueError(r"Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`") # noqa: E501
|
||||||
|
|
||||||
self._string = string
|
self._string = string
|
||||||
@ -297,9 +313,10 @@ class FormatTest(object):
|
|||||||
:param byte: The byte of this FormatTest. # noqa: E501
|
:param byte: The byte of this FormatTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if byte is None:
|
if self.local_vars_configuration.client_side_validation and byte is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `byte`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `byte`, must not be `None`") # noqa: E501
|
||||||
if byte is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', byte): # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
byte is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', byte)): # noqa: E501
|
||||||
raise ValueError(r"Invalid value for `byte`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
|
raise ValueError(r"Invalid value for `byte`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
|
||||||
|
|
||||||
self._byte = byte
|
self._byte = byte
|
||||||
@ -343,7 +360,7 @@ class FormatTest(object):
|
|||||||
:param date: The date of this FormatTest. # noqa: E501
|
:param date: The date of this FormatTest. # noqa: E501
|
||||||
:type: date
|
:type: date
|
||||||
"""
|
"""
|
||||||
if date is None:
|
if self.local_vars_configuration.client_side_validation and date is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._date = date
|
self._date = date
|
||||||
@ -408,11 +425,13 @@ class FormatTest(object):
|
|||||||
:param password: The password of this FormatTest. # noqa: E501
|
:param password: The password of this FormatTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if password is None:
|
if self.local_vars_configuration.client_side_validation and password is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501
|
||||||
if password is not None and len(password) > 64:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
password is not None and len(password) > 64):
|
||||||
raise ValueError("Invalid value for `password`, length must be less than or equal to `64`") # noqa: E501
|
raise ValueError("Invalid value for `password`, length must be less than or equal to `64`") # noqa: E501
|
||||||
if password is not None and len(password) < 10:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
password is not None and len(password) < 10):
|
||||||
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`") # noqa: E501
|
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`") # noqa: E501
|
||||||
|
|
||||||
self._password = password
|
self._password = password
|
||||||
@ -475,8 +494,11 @@ class FormatTest(object):
|
|||||||
if not isinstance(other, FormatTest):
|
if not isinstance(other, FormatTest):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, FormatTest):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class HasOnlyReadOnly(object):
|
class HasOnlyReadOnly(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class HasOnlyReadOnly(object):
|
|||||||
'foo': 'foo'
|
'foo': 'foo'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, bar=None, foo=None): # noqa: E501
|
def __init__(self, bar=None, foo=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""HasOnlyReadOnly - a model defined in OpenAPI""" # noqa: E501
|
"""HasOnlyReadOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._bar = None
|
self._bar = None
|
||||||
self._foo = None
|
self._foo = None
|
||||||
@ -131,8 +136,11 @@ class HasOnlyReadOnly(object):
|
|||||||
if not isinstance(other, HasOnlyReadOnly):
|
if not isinstance(other, HasOnlyReadOnly):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, HasOnlyReadOnly):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class List(object):
|
class List(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class List(object):
|
|||||||
'_123_list': '123-list'
|
'_123_list': '123-list'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _123_list=None): # noqa: E501
|
def __init__(self, _123_list=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""List - a model defined in OpenAPI""" # noqa: E501
|
"""List - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self.__123_list = None
|
self.__123_list = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class List(object):
|
|||||||
if not isinstance(other, List):
|
if not isinstance(other, List):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, List):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class MapTest(object):
|
class MapTest(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -44,8 +46,11 @@ class MapTest(object):
|
|||||||
'indirect_map': 'indirect_map'
|
'indirect_map': 'indirect_map'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, map_map_of_string=None, map_of_enum_string=None, direct_map=None, indirect_map=None): # noqa: E501
|
def __init__(self, map_map_of_string=None, map_of_enum_string=None, direct_map=None, indirect_map=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""MapTest - a model defined in OpenAPI""" # noqa: E501
|
"""MapTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._map_map_of_string = None
|
self._map_map_of_string = None
|
||||||
self._map_of_enum_string = None
|
self._map_of_enum_string = None
|
||||||
@ -102,7 +107,8 @@ class MapTest(object):
|
|||||||
:type: dict(str, str)
|
:type: dict(str, str)
|
||||||
"""
|
"""
|
||||||
allowed_values = ["UPPER", "lower"] # noqa: E501
|
allowed_values = ["UPPER", "lower"] # noqa: E501
|
||||||
if not set(map_of_enum_string.keys()).issubset(set(allowed_values)):
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
not set(map_of_enum_string.keys()).issubset(set(allowed_values))):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid keys in `map_of_enum_string` [{0}], must be a subset of [{1}]" # noqa: E501
|
"Invalid keys in `map_of_enum_string` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||||
.format(", ".join(map(str, set(map_of_enum_string.keys()) - set(allowed_values))), # noqa: E501
|
.format(", ".join(map(str, set(map_of_enum_string.keys()) - set(allowed_values))), # noqa: E501
|
||||||
@ -190,8 +196,11 @@ class MapTest(object):
|
|||||||
if not isinstance(other, MapTest):
|
if not isinstance(other, MapTest):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, MapTest):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -42,8 +44,11 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
|||||||
'map': 'map'
|
'map': 'map'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, uuid=None, date_time=None, map=None): # noqa: E501
|
def __init__(self, uuid=None, date_time=None, map=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._uuid = None
|
self._uuid = None
|
||||||
self._date_time = None
|
self._date_time = None
|
||||||
@ -157,8 +162,11 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
|||||||
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
|
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Model200Response(object):
|
class Model200Response(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class Model200Response(object):
|
|||||||
'_class': 'class'
|
'_class': 'class'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None, _class=None): # noqa: E501
|
def __init__(self, name=None, _class=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Model200Response - a model defined in OpenAPI""" # noqa: E501
|
"""Model200Response - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.__class = None
|
self.__class = None
|
||||||
@ -131,8 +136,11 @@ class Model200Response(object):
|
|||||||
if not isinstance(other, Model200Response):
|
if not isinstance(other, Model200Response):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Model200Response):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ModelReturn(object):
|
class ModelReturn(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class ModelReturn(object):
|
|||||||
'_return': 'return'
|
'_return': 'return'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _return=None): # noqa: E501
|
def __init__(self, _return=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ModelReturn - a model defined in OpenAPI""" # noqa: E501
|
"""ModelReturn - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self.__return = None
|
self.__return = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class ModelReturn(object):
|
|||||||
if not isinstance(other, ModelReturn):
|
if not isinstance(other, ModelReturn):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ModelReturn):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Name(object):
|
class Name(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -44,8 +46,11 @@ class Name(object):
|
|||||||
'_123_number': '123Number'
|
'_123_number': '123Number'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None, snake_case=None, _property=None, _123_number=None): # noqa: E501
|
def __init__(self, name=None, snake_case=None, _property=None, _123_number=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Name - a model defined in OpenAPI""" # noqa: E501
|
"""Name - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self._snake_case = None
|
self._snake_case = None
|
||||||
@ -79,7 +84,7 @@ class Name(object):
|
|||||||
:param name: The name of this Name. # noqa: E501
|
:param name: The name of this Name. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if name is None:
|
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
@ -184,8 +189,11 @@ class Name(object):
|
|||||||
if not isinstance(other, Name):
|
if not isinstance(other, Name):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Name):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class NumberOnly(object):
|
class NumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class NumberOnly(object):
|
|||||||
'just_number': 'JustNumber'
|
'just_number': 'JustNumber'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, just_number=None): # noqa: E501
|
def __init__(self, just_number=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""NumberOnly - a model defined in OpenAPI""" # noqa: E501
|
"""NumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._just_number = None
|
self._just_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class NumberOnly(object):
|
|||||||
if not isinstance(other, NumberOnly):
|
if not isinstance(other, NumberOnly):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, NumberOnly):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Order(object):
|
class Order(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -48,8 +50,11 @@ class Order(object):
|
|||||||
'complete': 'complete'
|
'complete': 'complete'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False): # noqa: E501
|
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False, local_vars_configuration=None): # noqa: E501
|
||||||
"""Order - a model defined in OpenAPI""" # noqa: E501
|
"""Order - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._pet_id = None
|
self._pet_id = None
|
||||||
@ -177,7 +182,7 @@ class Order(object):
|
|||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
allowed_values = ["placed", "approved", "delivered"] # noqa: E501
|
allowed_values = ["placed", "approved", "delivered"] # noqa: E501
|
||||||
if status not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(status, allowed_values)
|
.format(status, allowed_values)
|
||||||
@ -243,8 +248,11 @@ class Order(object):
|
|||||||
if not isinstance(other, Order):
|
if not isinstance(other, Order):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Order):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class OuterComposite(object):
|
class OuterComposite(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -42,8 +44,11 @@ class OuterComposite(object):
|
|||||||
'my_boolean': 'my_boolean'
|
'my_boolean': 'my_boolean'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, my_number=None, my_string=None, my_boolean=None): # noqa: E501
|
def __init__(self, my_number=None, my_string=None, my_boolean=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""OuterComposite - a model defined in OpenAPI""" # noqa: E501
|
"""OuterComposite - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._my_number = None
|
self._my_number = None
|
||||||
self._my_string = None
|
self._my_string = None
|
||||||
@ -157,8 +162,11 @@ class OuterComposite(object):
|
|||||||
if not isinstance(other, OuterComposite):
|
if not isinstance(other, OuterComposite):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, OuterComposite):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class OuterEnum(object):
|
class OuterEnum(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -43,8 +45,11 @@ class OuterEnum(object):
|
|||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self, local_vars_configuration=None): # noqa: E501
|
||||||
"""OuterEnum - a model defined in OpenAPI""" # noqa: E501
|
"""OuterEnum - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
@ -84,8 +89,11 @@ class OuterEnum(object):
|
|||||||
if not isinstance(other, OuterEnum):
|
if not isinstance(other, OuterEnum):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, OuterEnum):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Pet(object):
|
class Pet(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -48,8 +50,11 @@ class Pet(object):
|
|||||||
'status': 'status'
|
'status': 'status'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None): # noqa: E501
|
def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Pet - a model defined in OpenAPI""" # noqa: E501
|
"""Pet - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._category = None
|
self._category = None
|
||||||
@ -130,7 +135,7 @@ class Pet(object):
|
|||||||
:param name: The name of this Pet. # noqa: E501
|
:param name: The name of this Pet. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if name is None:
|
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
@ -153,7 +158,7 @@ class Pet(object):
|
|||||||
:param photo_urls: The photo_urls of this Pet. # noqa: E501
|
:param photo_urls: The photo_urls of this Pet. # noqa: E501
|
||||||
:type: list[str]
|
:type: list[str]
|
||||||
"""
|
"""
|
||||||
if photo_urls is None:
|
if self.local_vars_configuration.client_side_validation and photo_urls is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `photo_urls`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `photo_urls`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._photo_urls = photo_urls
|
self._photo_urls = photo_urls
|
||||||
@ -200,7 +205,7 @@ class Pet(object):
|
|||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
allowed_values = ["available", "pending", "sold"] # noqa: E501
|
allowed_values = ["available", "pending", "sold"] # noqa: E501
|
||||||
if status not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(status, allowed_values)
|
.format(status, allowed_values)
|
||||||
@ -245,8 +250,11 @@ class Pet(object):
|
|||||||
if not isinstance(other, Pet):
|
if not isinstance(other, Pet):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Pet):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ReadOnlyFirst(object):
|
class ReadOnlyFirst(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class ReadOnlyFirst(object):
|
|||||||
'baz': 'baz'
|
'baz': 'baz'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, bar=None, baz=None): # noqa: E501
|
def __init__(self, bar=None, baz=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ReadOnlyFirst - a model defined in OpenAPI""" # noqa: E501
|
"""ReadOnlyFirst - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._bar = None
|
self._bar = None
|
||||||
self._baz = None
|
self._baz = None
|
||||||
@ -131,8 +136,11 @@ class ReadOnlyFirst(object):
|
|||||||
if not isinstance(other, ReadOnlyFirst):
|
if not isinstance(other, ReadOnlyFirst):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ReadOnlyFirst):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class SpecialModelName(object):
|
class SpecialModelName(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class SpecialModelName(object):
|
|||||||
'special_property_name': '$special[property.name]'
|
'special_property_name': '$special[property.name]'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, special_property_name=None): # noqa: E501
|
def __init__(self, special_property_name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""SpecialModelName - a model defined in OpenAPI""" # noqa: E501
|
"""SpecialModelName - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._special_property_name = None
|
self._special_property_name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class SpecialModelName(object):
|
|||||||
if not isinstance(other, SpecialModelName):
|
if not isinstance(other, SpecialModelName):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, SpecialModelName):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Tag(object):
|
class Tag(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class Tag(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, name=None): # noqa: E501
|
def __init__(self, id=None, name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Tag - a model defined in OpenAPI""" # noqa: E501
|
"""Tag - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._name = None
|
self._name = None
|
||||||
@ -131,8 +136,11 @@ class Tag(object):
|
|||||||
if not isinstance(other, Tag):
|
if not isinstance(other, Tag):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Tag):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class TypeHolderDefault(object):
|
class TypeHolderDefault(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -46,8 +48,11 @@ class TypeHolderDefault(object):
|
|||||||
'array_item': 'array_item'
|
'array_item': 'array_item'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, string_item='what', number_item=None, integer_item=None, bool_item=True, array_item=None): # noqa: E501
|
def __init__(self, string_item='what', number_item=None, integer_item=None, bool_item=True, array_item=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""TypeHolderDefault - a model defined in OpenAPI""" # noqa: E501
|
"""TypeHolderDefault - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._string_item = None
|
self._string_item = None
|
||||||
self._number_item = None
|
self._number_item = None
|
||||||
@ -80,7 +85,7 @@ class TypeHolderDefault(object):
|
|||||||
:param string_item: The string_item of this TypeHolderDefault. # noqa: E501
|
:param string_item: The string_item of this TypeHolderDefault. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if string_item is None:
|
if self.local_vars_configuration.client_side_validation and string_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `string_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `string_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._string_item = string_item
|
self._string_item = string_item
|
||||||
@ -103,7 +108,7 @@ class TypeHolderDefault(object):
|
|||||||
:param number_item: The number_item of this TypeHolderDefault. # noqa: E501
|
:param number_item: The number_item of this TypeHolderDefault. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if number_item is None:
|
if self.local_vars_configuration.client_side_validation and number_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `number_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `number_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._number_item = number_item
|
self._number_item = number_item
|
||||||
@ -126,7 +131,7 @@ class TypeHolderDefault(object):
|
|||||||
:param integer_item: The integer_item of this TypeHolderDefault. # noqa: E501
|
:param integer_item: The integer_item of this TypeHolderDefault. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if integer_item is None:
|
if self.local_vars_configuration.client_side_validation and integer_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `integer_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `integer_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._integer_item = integer_item
|
self._integer_item = integer_item
|
||||||
@ -149,7 +154,7 @@ class TypeHolderDefault(object):
|
|||||||
:param bool_item: The bool_item of this TypeHolderDefault. # noqa: E501
|
:param bool_item: The bool_item of this TypeHolderDefault. # noqa: E501
|
||||||
:type: bool
|
:type: bool
|
||||||
"""
|
"""
|
||||||
if bool_item is None:
|
if self.local_vars_configuration.client_side_validation and bool_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `bool_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `bool_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._bool_item = bool_item
|
self._bool_item = bool_item
|
||||||
@ -172,7 +177,7 @@ class TypeHolderDefault(object):
|
|||||||
:param array_item: The array_item of this TypeHolderDefault. # noqa: E501
|
:param array_item: The array_item of this TypeHolderDefault. # noqa: E501
|
||||||
:type: list[int]
|
:type: list[int]
|
||||||
"""
|
"""
|
||||||
if array_item is None:
|
if self.local_vars_configuration.client_side_validation and array_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `array_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `array_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._array_item = array_item
|
self._array_item = array_item
|
||||||
@ -214,8 +219,11 @@ class TypeHolderDefault(object):
|
|||||||
if not isinstance(other, TypeHolderDefault):
|
if not isinstance(other, TypeHolderDefault):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, TypeHolderDefault):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class TypeHolderExample(object):
|
class TypeHolderExample(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -48,8 +50,11 @@ class TypeHolderExample(object):
|
|||||||
'array_item': 'array_item'
|
'array_item': 'array_item'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, string_item=None, number_item=None, float_item=None, integer_item=None, bool_item=None, array_item=None): # noqa: E501
|
def __init__(self, string_item=None, number_item=None, float_item=None, integer_item=None, bool_item=None, array_item=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""TypeHolderExample - a model defined in OpenAPI""" # noqa: E501
|
"""TypeHolderExample - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._string_item = None
|
self._string_item = None
|
||||||
self._number_item = None
|
self._number_item = None
|
||||||
@ -84,7 +89,7 @@ class TypeHolderExample(object):
|
|||||||
:param string_item: The string_item of this TypeHolderExample. # noqa: E501
|
:param string_item: The string_item of this TypeHolderExample. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if string_item is None:
|
if self.local_vars_configuration.client_side_validation and string_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `string_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `string_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._string_item = string_item
|
self._string_item = string_item
|
||||||
@ -107,7 +112,7 @@ class TypeHolderExample(object):
|
|||||||
:param number_item: The number_item of this TypeHolderExample. # noqa: E501
|
:param number_item: The number_item of this TypeHolderExample. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if number_item is None:
|
if self.local_vars_configuration.client_side_validation and number_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `number_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `number_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._number_item = number_item
|
self._number_item = number_item
|
||||||
@ -130,7 +135,7 @@ class TypeHolderExample(object):
|
|||||||
:param float_item: The float_item of this TypeHolderExample. # noqa: E501
|
:param float_item: The float_item of this TypeHolderExample. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if float_item is None:
|
if self.local_vars_configuration.client_side_validation and float_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `float_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `float_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._float_item = float_item
|
self._float_item = float_item
|
||||||
@ -153,7 +158,7 @@ class TypeHolderExample(object):
|
|||||||
:param integer_item: The integer_item of this TypeHolderExample. # noqa: E501
|
:param integer_item: The integer_item of this TypeHolderExample. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if integer_item is None:
|
if self.local_vars_configuration.client_side_validation and integer_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `integer_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `integer_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._integer_item = integer_item
|
self._integer_item = integer_item
|
||||||
@ -176,7 +181,7 @@ class TypeHolderExample(object):
|
|||||||
:param bool_item: The bool_item of this TypeHolderExample. # noqa: E501
|
:param bool_item: The bool_item of this TypeHolderExample. # noqa: E501
|
||||||
:type: bool
|
:type: bool
|
||||||
"""
|
"""
|
||||||
if bool_item is None:
|
if self.local_vars_configuration.client_side_validation and bool_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `bool_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `bool_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._bool_item = bool_item
|
self._bool_item = bool_item
|
||||||
@ -199,7 +204,7 @@ class TypeHolderExample(object):
|
|||||||
:param array_item: The array_item of this TypeHolderExample. # noqa: E501
|
:param array_item: The array_item of this TypeHolderExample. # noqa: E501
|
||||||
:type: list[int]
|
:type: list[int]
|
||||||
"""
|
"""
|
||||||
if array_item is None:
|
if self.local_vars_configuration.client_side_validation and array_item is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `array_item`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `array_item`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._array_item = array_item
|
self._array_item = array_item
|
||||||
@ -241,8 +246,11 @@ class TypeHolderExample(object):
|
|||||||
if not isinstance(other, TypeHolderExample):
|
if not isinstance(other, TypeHolderExample):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, TypeHolderExample):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class User(object):
|
class User(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -52,8 +54,11 @@ class User(object):
|
|||||||
'user_status': 'userStatus'
|
'user_status': 'userStatus'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, username=None, first_name=None, last_name=None, email=None, password=None, phone=None, user_status=None): # noqa: E501
|
def __init__(self, id=None, username=None, first_name=None, last_name=None, email=None, password=None, phone=None, user_status=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""User - a model defined in OpenAPI""" # noqa: E501
|
"""User - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._username = None
|
self._username = None
|
||||||
@ -289,8 +294,11 @@ class User(object):
|
|||||||
if not isinstance(other, User):
|
if not isinstance(other, User):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, User):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class XmlItem(object):
|
class XmlItem(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -94,8 +96,11 @@ class XmlItem(object):
|
|||||||
'prefix_ns_wrapped_array': 'prefix_ns_wrapped_array'
|
'prefix_ns_wrapped_array': 'prefix_ns_wrapped_array'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, attribute_string=None, attribute_number=None, attribute_integer=None, attribute_boolean=None, wrapped_array=None, name_string=None, name_number=None, name_integer=None, name_boolean=None, name_array=None, name_wrapped_array=None, prefix_string=None, prefix_number=None, prefix_integer=None, prefix_boolean=None, prefix_array=None, prefix_wrapped_array=None, namespace_string=None, namespace_number=None, namespace_integer=None, namespace_boolean=None, namespace_array=None, namespace_wrapped_array=None, prefix_ns_string=None, prefix_ns_number=None, prefix_ns_integer=None, prefix_ns_boolean=None, prefix_ns_array=None, prefix_ns_wrapped_array=None): # noqa: E501
|
def __init__(self, attribute_string=None, attribute_number=None, attribute_integer=None, attribute_boolean=None, wrapped_array=None, name_string=None, name_number=None, name_integer=None, name_boolean=None, name_array=None, name_wrapped_array=None, prefix_string=None, prefix_number=None, prefix_integer=None, prefix_boolean=None, prefix_array=None, prefix_wrapped_array=None, namespace_string=None, namespace_number=None, namespace_integer=None, namespace_boolean=None, namespace_array=None, namespace_wrapped_array=None, prefix_ns_string=None, prefix_ns_number=None, prefix_ns_integer=None, prefix_ns_boolean=None, prefix_ns_array=None, prefix_ns_wrapped_array=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""XmlItem - a model defined in OpenAPI""" # noqa: E501
|
"""XmlItem - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._attribute_string = None
|
self._attribute_string = None
|
||||||
self._attribute_number = None
|
self._attribute_number = None
|
||||||
@ -833,8 +838,11 @@ class XmlItem(object):
|
|||||||
if not isinstance(other, XmlItem):
|
if not isinstance(other, XmlItem):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, XmlItem):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -103,8 +103,8 @@ class AnotherFakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'client' is set
|
# verify the required parameter 'client' is set
|
||||||
if ('client' not in local_var_params or
|
if self.api_client.client_side_validation and ('client' not in local_var_params or # noqa: E501
|
||||||
local_var_params['client'] is None):
|
local_var_params['client'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `client` when calling `call_123_test_special_tags`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `client` when calling `call_123_test_special_tags`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -633,8 +633,8 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'file_schema_test_class' is set
|
# verify the required parameter 'file_schema_test_class' is set
|
||||||
if ('file_schema_test_class' not in local_var_params or
|
if self.api_client.client_side_validation and ('file_schema_test_class' not in local_var_params or # noqa: E501
|
||||||
local_var_params['file_schema_test_class'] is None):
|
local_var_params['file_schema_test_class'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `file_schema_test_class` when calling `test_body_with_file_schema`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `file_schema_test_class` when calling `test_body_with_file_schema`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -741,12 +741,12 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'query' is set
|
# verify the required parameter 'query' is set
|
||||||
if ('query' not in local_var_params or
|
if self.api_client.client_side_validation and ('query' not in local_var_params or # noqa: E501
|
||||||
local_var_params['query'] is None):
|
local_var_params['query'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `query` when calling `test_body_with_query_params`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `query` when calling `test_body_with_query_params`") # noqa: E501
|
||||||
# verify the required parameter 'user' is set
|
# verify the required parameter 'user' is set
|
||||||
if ('user' not in local_var_params or
|
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||||
local_var_params['user'] is None):
|
local_var_params['user'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `user` when calling `test_body_with_query_params`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `user` when calling `test_body_with_query_params`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -855,8 +855,8 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'client' is set
|
# verify the required parameter 'client' is set
|
||||||
if ('client' not in local_var_params or
|
if self.api_client.client_side_validation and ('client' not in local_var_params or # noqa: E501
|
||||||
local_var_params['client'] is None):
|
local_var_params['client'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `client` when calling `test_client_model`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `client` when calling `test_client_model`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -993,49 +993,49 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'number' is set
|
# verify the required parameter 'number' is set
|
||||||
if ('number' not in local_var_params or
|
if self.api_client.client_side_validation and ('number' not in local_var_params or # noqa: E501
|
||||||
local_var_params['number'] is None):
|
local_var_params['number'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `number` when calling `test_endpoint_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `number` when calling `test_endpoint_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'double' is set
|
# verify the required parameter 'double' is set
|
||||||
if ('double' not in local_var_params or
|
if self.api_client.client_side_validation and ('double' not in local_var_params or # noqa: E501
|
||||||
local_var_params['double'] is None):
|
local_var_params['double'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `double` when calling `test_endpoint_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `double` when calling `test_endpoint_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'pattern_without_delimiter' is set
|
# verify the required parameter 'pattern_without_delimiter' is set
|
||||||
if ('pattern_without_delimiter' not in local_var_params or
|
if self.api_client.client_side_validation and ('pattern_without_delimiter' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pattern_without_delimiter'] is None):
|
local_var_params['pattern_without_delimiter'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'byte' is set
|
# verify the required parameter 'byte' is set
|
||||||
if ('byte' not in local_var_params or
|
if self.api_client.client_side_validation and ('byte' not in local_var_params or # noqa: E501
|
||||||
local_var_params['byte'] is None):
|
local_var_params['byte'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `byte` when calling `test_endpoint_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `byte` when calling `test_endpoint_parameters`") # noqa: E501
|
||||||
|
|
||||||
if 'number' in local_var_params and local_var_params['number'] > 543.2: # noqa: E501
|
if self.api_client.client_side_validation and 'number' in local_var_params and local_var_params['number'] > 543.2: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value less than or equal to `543.2`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value less than or equal to `543.2`") # noqa: E501
|
||||||
if 'number' in local_var_params and local_var_params['number'] < 32.1: # noqa: E501
|
if self.api_client.client_side_validation and 'number' in local_var_params and local_var_params['number'] < 32.1: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value greater than or equal to `32.1`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `number` when calling `test_endpoint_parameters`, must be a value greater than or equal to `32.1`") # noqa: E501
|
||||||
if 'double' in local_var_params and local_var_params['double'] > 123.4: # noqa: E501
|
if self.api_client.client_side_validation and 'double' in local_var_params and local_var_params['double'] > 123.4: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||||
if 'double' in local_var_params and local_var_params['double'] < 67.8: # noqa: E501
|
if self.api_client.client_side_validation and 'double' in local_var_params and local_var_params['double'] < 67.8: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||||
if 'pattern_without_delimiter' in local_var_params and not re.search(r'^[A-Z].*', local_var_params['pattern_without_delimiter']): # noqa: E501
|
if self.api_client.client_side_validation and 'pattern_without_delimiter' in local_var_params and not re.search(r'^[A-Z].*', local_var_params['pattern_without_delimiter']): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
||||||
if 'integer' in local_var_params and local_var_params['integer'] > 100: # noqa: E501
|
if self.api_client.client_side_validation and 'integer' in local_var_params and local_var_params['integer'] > 100: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
||||||
if 'integer' in local_var_params and local_var_params['integer'] < 10: # noqa: E501
|
if self.api_client.client_side_validation and 'integer' in local_var_params and local_var_params['integer'] < 10: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value greater than or equal to `10`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value greater than or equal to `10`") # noqa: E501
|
||||||
if 'int32' in local_var_params and local_var_params['int32'] > 200: # noqa: E501
|
if self.api_client.client_side_validation and 'int32' in local_var_params and local_var_params['int32'] > 200: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value less than or equal to `200`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value less than or equal to `200`") # noqa: E501
|
||||||
if 'int32' in local_var_params and local_var_params['int32'] < 20: # noqa: E501
|
if self.api_client.client_side_validation and 'int32' in local_var_params and local_var_params['int32'] < 20: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
||||||
if 'float' in local_var_params and local_var_params['float'] > 987.6: # noqa: E501
|
if self.api_client.client_side_validation and 'float' in local_var_params and local_var_params['float'] > 987.6: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||||
if 'string' in local_var_params and not re.search(r'[a-z]', local_var_params['string'], flags=re.IGNORECASE): # noqa: E501
|
if self.api_client.client_side_validation and 'string' in local_var_params and not re.search(r'[a-z]', local_var_params['string'], flags=re.IGNORECASE): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
||||||
if ('password' in local_var_params and
|
if self.api_client.client_side_validation and ('password' in local_var_params and # noqa: E501
|
||||||
len(local_var_params['password']) > 64):
|
len(local_var_params['password']) > 64): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be less than or equal to `64`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be less than or equal to `64`") # noqa: E501
|
||||||
if ('password' in local_var_params and
|
if self.api_client.client_side_validation and ('password' in local_var_params and # noqa: E501
|
||||||
len(local_var_params['password']) < 10):
|
len(local_var_params['password']) < 10): # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be greater than or equal to `10`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be greater than or equal to `10`") # noqa: E501
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
|
||||||
@ -1312,16 +1312,16 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'required_string_group' is set
|
# verify the required parameter 'required_string_group' is set
|
||||||
if ('required_string_group' not in local_var_params or
|
if self.api_client.client_side_validation and ('required_string_group' not in local_var_params or # noqa: E501
|
||||||
local_var_params['required_string_group'] is None):
|
local_var_params['required_string_group'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `required_string_group` when calling `test_group_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `required_string_group` when calling `test_group_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'required_boolean_group' is set
|
# verify the required parameter 'required_boolean_group' is set
|
||||||
if ('required_boolean_group' not in local_var_params or
|
if self.api_client.client_side_validation and ('required_boolean_group' not in local_var_params or # noqa: E501
|
||||||
local_var_params['required_boolean_group'] is None):
|
local_var_params['required_boolean_group'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `required_boolean_group` when calling `test_group_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `required_boolean_group` when calling `test_group_parameters`") # noqa: E501
|
||||||
# verify the required parameter 'required_int64_group' is set
|
# verify the required parameter 'required_int64_group' is set
|
||||||
if ('required_int64_group' not in local_var_params or
|
if self.api_client.client_side_validation and ('required_int64_group' not in local_var_params or # noqa: E501
|
||||||
local_var_params['required_int64_group'] is None):
|
local_var_params['required_int64_group'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `required_int64_group` when calling `test_group_parameters`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `required_int64_group` when calling `test_group_parameters`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -1432,8 +1432,8 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'request_body' is set
|
# verify the required parameter 'request_body' is set
|
||||||
if ('request_body' not in local_var_params or
|
if self.api_client.client_side_validation and ('request_body' not in local_var_params or # noqa: E501
|
||||||
local_var_params['request_body'] is None):
|
local_var_params['request_body'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `request_body` when calling `test_inline_additional_properties`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `request_body` when calling `test_inline_additional_properties`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -1540,12 +1540,12 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'param' is set
|
# verify the required parameter 'param' is set
|
||||||
if ('param' not in local_var_params or
|
if self.api_client.client_side_validation and ('param' not in local_var_params or # noqa: E501
|
||||||
local_var_params['param'] is None):
|
local_var_params['param'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `param` when calling `test_json_form_data`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `param` when calling `test_json_form_data`") # noqa: E501
|
||||||
# verify the required parameter 'param2' is set
|
# verify the required parameter 'param2' is set
|
||||||
if ('param2' not in local_var_params or
|
if self.api_client.client_side_validation and ('param2' not in local_var_params or # noqa: E501
|
||||||
local_var_params['param2'] is None):
|
local_var_params['param2'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `param2` when calling `test_json_form_data`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `param2` when calling `test_json_form_data`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -1662,24 +1662,24 @@ class FakeApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pipe' is set
|
# verify the required parameter 'pipe' is set
|
||||||
if ('pipe' not in local_var_params or
|
if self.api_client.client_side_validation and ('pipe' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pipe'] is None):
|
local_var_params['pipe'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pipe` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pipe` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
# verify the required parameter 'ioutil' is set
|
# verify the required parameter 'ioutil' is set
|
||||||
if ('ioutil' not in local_var_params or
|
if self.api_client.client_side_validation and ('ioutil' not in local_var_params or # noqa: E501
|
||||||
local_var_params['ioutil'] is None):
|
local_var_params['ioutil'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `ioutil` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `ioutil` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
# verify the required parameter 'http' is set
|
# verify the required parameter 'http' is set
|
||||||
if ('http' not in local_var_params or
|
if self.api_client.client_side_validation and ('http' not in local_var_params or # noqa: E501
|
||||||
local_var_params['http'] is None):
|
local_var_params['http'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `http` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `http` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
# verify the required parameter 'url' is set
|
# verify the required parameter 'url' is set
|
||||||
if ('url' not in local_var_params or
|
if self.api_client.client_side_validation and ('url' not in local_var_params or # noqa: E501
|
||||||
local_var_params['url'] is None):
|
local_var_params['url'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `url` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `url` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
# verify the required parameter 'context' is set
|
# verify the required parameter 'context' is set
|
||||||
if ('context' not in local_var_params or
|
if self.api_client.client_side_validation and ('context' not in local_var_params or # noqa: E501
|
||||||
local_var_params['context'] is None):
|
local_var_params['context'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `context` when calling `test_query_parameter_collection_format`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `context` when calling `test_query_parameter_collection_format`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -103,8 +103,8 @@ class FakeClassnameTags123Api(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'client' is set
|
# verify the required parameter 'client' is set
|
||||||
if ('client' not in local_var_params or
|
if self.api_client.client_side_validation and ('client' not in local_var_params or # noqa: E501
|
||||||
local_var_params['client'] is None):
|
local_var_params['client'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `client` when calling `test_classname`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `client` when calling `test_classname`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -107,8 +107,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet' is set
|
# verify the required parameter 'pet' is set
|
||||||
if ('pet' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet'] is None):
|
local_var_params['pet'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet` when calling `add_pet`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet` when calling `add_pet`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -216,8 +216,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `delete_pet`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `delete_pet`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -322,8 +322,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'status' is set
|
# verify the required parameter 'status' is set
|
||||||
if ('status' not in local_var_params or
|
if self.api_client.client_side_validation and ('status' not in local_var_params or # noqa: E501
|
||||||
local_var_params['status'] is None):
|
local_var_params['status'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `status` when calling `find_pets_by_status`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `status` when calling `find_pets_by_status`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -431,8 +431,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'tags' is set
|
# verify the required parameter 'tags' is set
|
||||||
if ('tags' not in local_var_params or
|
if self.api_client.client_side_validation and ('tags' not in local_var_params or # noqa: E501
|
||||||
local_var_params['tags'] is None):
|
local_var_params['tags'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `tags` when calling `find_pets_by_tags`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `tags` when calling `find_pets_by_tags`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -540,8 +540,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `get_pet_by_id`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `get_pet_by_id`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -652,8 +652,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet' is set
|
# verify the required parameter 'pet' is set
|
||||||
if ('pet' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet'] is None):
|
local_var_params['pet'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet` when calling `update_pet`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet` when calling `update_pet`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -763,8 +763,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `update_pet_with_form`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `update_pet_with_form`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -877,8 +877,8 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -995,12 +995,12 @@ class PetApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'pet_id' is set
|
# verify the required parameter 'pet_id' is set
|
||||||
if ('pet_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('pet_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['pet_id'] is None):
|
local_var_params['pet_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file_with_required_file`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `pet_id` when calling `upload_file_with_required_file`") # noqa: E501
|
||||||
# verify the required parameter 'required_file' is set
|
# verify the required parameter 'required_file' is set
|
||||||
if ('required_file' not in local_var_params or
|
if self.api_client.client_side_validation and ('required_file' not in local_var_params or # noqa: E501
|
||||||
local_var_params['required_file'] is None):
|
local_var_params['required_file'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `required_file` when calling `upload_file_with_required_file`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `required_file` when calling `upload_file_with_required_file`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -103,8 +103,8 @@ class StoreApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'order_id' is set
|
# verify the required parameter 'order_id' is set
|
||||||
if ('order_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('order_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['order_id'] is None):
|
local_var_params['order_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `order_id` when calling `delete_order`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `order_id` when calling `delete_order`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -307,13 +307,13 @@ class StoreApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'order_id' is set
|
# verify the required parameter 'order_id' is set
|
||||||
if ('order_id' not in local_var_params or
|
if self.api_client.client_side_validation and ('order_id' not in local_var_params or # noqa: E501
|
||||||
local_var_params['order_id'] is None):
|
local_var_params['order_id'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `order_id` when calling `get_order_by_id`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `order_id` when calling `get_order_by_id`") # noqa: E501
|
||||||
|
|
||||||
if 'order_id' in local_var_params and local_var_params['order_id'] > 5: # noqa: E501
|
if self.api_client.client_side_validation and 'order_id' in local_var_params and local_var_params['order_id'] > 5: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value less than or equal to `5`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value less than or equal to `5`") # noqa: E501
|
||||||
if 'order_id' in local_var_params and local_var_params['order_id'] < 1: # noqa: E501
|
if self.api_client.client_side_validation and 'order_id' in local_var_params and local_var_params['order_id'] < 1: # noqa: E501
|
||||||
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value greater than or equal to `1`") # noqa: E501
|
raise ApiValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value greater than or equal to `1`") # noqa: E501
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
|
||||||
@ -417,8 +417,8 @@ class StoreApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'order' is set
|
# verify the required parameter 'order' is set
|
||||||
if ('order' not in local_var_params or
|
if self.api_client.client_side_validation and ('order' not in local_var_params or # noqa: E501
|
||||||
local_var_params['order'] is None):
|
local_var_params['order'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `order` when calling `place_order`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `order` when calling `place_order`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -103,8 +103,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'user' is set
|
# verify the required parameter 'user' is set
|
||||||
if ('user' not in local_var_params or
|
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||||
local_var_params['user'] is None):
|
local_var_params['user'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `user` when calling `create_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `user` when calling `create_user`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -209,8 +209,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'user' is set
|
# verify the required parameter 'user' is set
|
||||||
if ('user' not in local_var_params or
|
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||||
local_var_params['user'] is None):
|
local_var_params['user'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `user` when calling `create_users_with_array_input`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `user` when calling `create_users_with_array_input`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -315,8 +315,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'user' is set
|
# verify the required parameter 'user' is set
|
||||||
if ('user' not in local_var_params or
|
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||||
local_var_params['user'] is None):
|
local_var_params['user'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `user` when calling `create_users_with_list_input`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `user` when calling `create_users_with_list_input`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -423,8 +423,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'username' is set
|
# verify the required parameter 'username' is set
|
||||||
if ('username' not in local_var_params or
|
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||||
local_var_params['username'] is None):
|
local_var_params['username'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `username` when calling `delete_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `username` when calling `delete_user`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -525,8 +525,8 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'username' is set
|
# verify the required parameter 'username' is set
|
||||||
if ('username' not in local_var_params or
|
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||||
local_var_params['username'] is None):
|
local_var_params['username'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `username` when calling `get_user_by_name`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `username` when calling `get_user_by_name`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -633,12 +633,12 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'username' is set
|
# verify the required parameter 'username' is set
|
||||||
if ('username' not in local_var_params or
|
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||||
local_var_params['username'] is None):
|
local_var_params['username'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `username` when calling `login_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `username` when calling `login_user`") # noqa: E501
|
||||||
# verify the required parameter 'password' is set
|
# verify the required parameter 'password' is set
|
||||||
if ('password' not in local_var_params or
|
if self.api_client.client_side_validation and ('password' not in local_var_params or # noqa: E501
|
||||||
local_var_params['password'] is None):
|
local_var_params['password'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `password` when calling `login_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `password` when calling `login_user`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
@ -843,12 +843,12 @@ class UserApi(object):
|
|||||||
local_var_params[key] = val
|
local_var_params[key] = val
|
||||||
del local_var_params['kwargs']
|
del local_var_params['kwargs']
|
||||||
# verify the required parameter 'username' is set
|
# verify the required parameter 'username' is set
|
||||||
if ('username' not in local_var_params or
|
if self.api_client.client_side_validation and ('username' not in local_var_params or # noqa: E501
|
||||||
local_var_params['username'] is None):
|
local_var_params['username'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `username` when calling `update_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `username` when calling `update_user`") # noqa: E501
|
||||||
# verify the required parameter 'user' is set
|
# verify the required parameter 'user' is set
|
||||||
if ('user' not in local_var_params or
|
if self.api_client.client_side_validation and ('user' not in local_var_params or # noqa: E501
|
||||||
local_var_params['user'] is None):
|
local_var_params['user'] is None): # noqa: E501
|
||||||
raise ApiValueError("Missing the required parameter `user` when calling `update_user`") # noqa: E501
|
raise ApiValueError("Missing the required parameter `user` when calling `update_user`") # noqa: E501
|
||||||
|
|
||||||
collection_formats = {}
|
collection_formats = {}
|
||||||
|
@ -77,6 +77,7 @@ class ApiClient(object):
|
|||||||
self.cookie = cookie
|
self.cookie = cookie
|
||||||
# Set default User-Agent.
|
# Set default User-Agent.
|
||||||
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
|
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
|
||||||
|
self.client_side_validation = configuration.client_side_validation
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
if self._pool:
|
if self._pool:
|
||||||
|
@ -138,6 +138,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|||||||
self.retries = None
|
self.retries = None
|
||||||
"""Adding retries to override urllib3 default value 3
|
"""Adding retries to override urllib3 default value 3
|
||||||
"""
|
"""
|
||||||
|
# Disable client side validation
|
||||||
|
self.client_side_validation = True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def logger_file(self):
|
def logger_file(self):
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesClass(object):
|
class AdditionalPropertiesClass(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class AdditionalPropertiesClass(object):
|
|||||||
'map_of_map_property': 'map_of_map_property'
|
'map_of_map_property': 'map_of_map_property'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, map_property=None, map_of_map_property=None): # noqa: E501
|
def __init__(self, map_property=None, map_of_map_property=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""AdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
"""AdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._map_property = None
|
self._map_property = None
|
||||||
self._map_of_map_property = None
|
self._map_of_map_property = None
|
||||||
@ -131,8 +136,11 @@ class AdditionalPropertiesClass(object):
|
|||||||
if not isinstance(other, AdditionalPropertiesClass):
|
if not isinstance(other, AdditionalPropertiesClass):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, AdditionalPropertiesClass):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Animal(object):
|
class Animal(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -45,8 +47,11 @@ class Animal(object):
|
|||||||
'Cat': 'Cat'
|
'Cat': 'Cat'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, class_name=None, color='red'): # noqa: E501
|
def __init__(self, class_name=None, color='red', local_vars_configuration=None): # noqa: E501
|
||||||
"""Animal - a model defined in OpenAPI""" # noqa: E501
|
"""Animal - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._class_name = None
|
self._class_name = None
|
||||||
self._color = None
|
self._color = None
|
||||||
@ -74,7 +79,7 @@ class Animal(object):
|
|||||||
:param class_name: The class_name of this Animal. # noqa: E501
|
:param class_name: The class_name of this Animal. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if class_name is None:
|
if self.local_vars_configuration.client_side_validation and class_name is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `class_name`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `class_name`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._class_name = class_name
|
self._class_name = class_name
|
||||||
@ -143,8 +148,11 @@ class Animal(object):
|
|||||||
if not isinstance(other, Animal):
|
if not isinstance(other, Animal):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Animal):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ApiResponse(object):
|
class ApiResponse(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -42,8 +44,11 @@ class ApiResponse(object):
|
|||||||
'message': 'message'
|
'message': 'message'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, code=None, type=None, message=None): # noqa: E501
|
def __init__(self, code=None, type=None, message=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ApiResponse - a model defined in OpenAPI""" # noqa: E501
|
"""ApiResponse - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._code = None
|
self._code = None
|
||||||
self._type = None
|
self._type = None
|
||||||
@ -157,8 +162,11 @@ class ApiResponse(object):
|
|||||||
if not isinstance(other, ApiResponse):
|
if not isinstance(other, ApiResponse):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ApiResponse):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ArrayOfArrayOfNumberOnly(object):
|
class ArrayOfArrayOfNumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class ArrayOfArrayOfNumberOnly(object):
|
|||||||
'array_array_number': 'ArrayArrayNumber'
|
'array_array_number': 'ArrayArrayNumber'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_array_number=None): # noqa: E501
|
def __init__(self, array_array_number=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._array_array_number = None
|
self._array_array_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class ArrayOfArrayOfNumberOnly(object):
|
|||||||
if not isinstance(other, ArrayOfArrayOfNumberOnly):
|
if not isinstance(other, ArrayOfArrayOfNumberOnly):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ArrayOfArrayOfNumberOnly):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ArrayOfNumberOnly(object):
|
class ArrayOfNumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class ArrayOfNumberOnly(object):
|
|||||||
'array_number': 'ArrayNumber'
|
'array_number': 'ArrayNumber'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_number=None): # noqa: E501
|
def __init__(self, array_number=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
"""ArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._array_number = None
|
self._array_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class ArrayOfNumberOnly(object):
|
|||||||
if not isinstance(other, ArrayOfNumberOnly):
|
if not isinstance(other, ArrayOfNumberOnly):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ArrayOfNumberOnly):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ArrayTest(object):
|
class ArrayTest(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -42,8 +44,11 @@ class ArrayTest(object):
|
|||||||
'array_array_of_model': 'array_array_of_model'
|
'array_array_of_model': 'array_array_of_model'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None): # noqa: E501
|
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ArrayTest - a model defined in OpenAPI""" # noqa: E501
|
"""ArrayTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._array_of_string = None
|
self._array_of_string = None
|
||||||
self._array_array_of_integer = None
|
self._array_array_of_integer = None
|
||||||
@ -157,8 +162,11 @@ class ArrayTest(object):
|
|||||||
if not isinstance(other, ArrayTest):
|
if not isinstance(other, ArrayTest):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ArrayTest):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Capitalization(object):
|
class Capitalization(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -48,8 +50,11 @@ class Capitalization(object):
|
|||||||
'att_name': 'ATT_NAME'
|
'att_name': 'ATT_NAME'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None): # noqa: E501
|
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Capitalization - a model defined in OpenAPI""" # noqa: E501
|
"""Capitalization - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._small_camel = None
|
self._small_camel = None
|
||||||
self._capital_camel = None
|
self._capital_camel = None
|
||||||
@ -237,8 +242,11 @@ class Capitalization(object):
|
|||||||
if not isinstance(other, Capitalization):
|
if not isinstance(other, Capitalization):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Capitalization):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Cat(object):
|
class Cat(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class Cat(object):
|
|||||||
'declawed': 'declawed'
|
'declawed': 'declawed'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, declawed=None): # noqa: E501
|
def __init__(self, declawed=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Cat - a model defined in OpenAPI""" # noqa: E501
|
"""Cat - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._declawed = None
|
self._declawed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class Cat(object):
|
|||||||
if not isinstance(other, Cat):
|
if not isinstance(other, Cat):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Cat):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class CatAllOf(object):
|
class CatAllOf(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class CatAllOf(object):
|
|||||||
'declawed': 'declawed'
|
'declawed': 'declawed'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, declawed=None): # noqa: E501
|
def __init__(self, declawed=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""CatAllOf - a model defined in OpenAPI""" # noqa: E501
|
"""CatAllOf - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._declawed = None
|
self._declawed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class CatAllOf(object):
|
|||||||
if not isinstance(other, CatAllOf):
|
if not isinstance(other, CatAllOf):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, CatAllOf):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Category(object):
|
class Category(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class Category(object):
|
|||||||
'name': 'name'
|
'name': 'name'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, name='default-name'): # noqa: E501
|
def __init__(self, id=None, name='default-name', local_vars_configuration=None): # noqa: E501
|
||||||
"""Category - a model defined in OpenAPI""" # noqa: E501
|
"""Category - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._name = None
|
self._name = None
|
||||||
@ -90,7 +95,7 @@ class Category(object):
|
|||||||
:param name: The name of this Category. # noqa: E501
|
:param name: The name of this Category. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if name is None:
|
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
@ -132,8 +137,11 @@ class Category(object):
|
|||||||
if not isinstance(other, Category):
|
if not isinstance(other, Category):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Category):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class ClassModel(object):
|
class ClassModel(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class ClassModel(object):
|
|||||||
'_class': '_class'
|
'_class': '_class'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _class=None): # noqa: E501
|
def __init__(self, _class=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""ClassModel - a model defined in OpenAPI""" # noqa: E501
|
"""ClassModel - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self.__class = None
|
self.__class = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class ClassModel(object):
|
|||||||
if not isinstance(other, ClassModel):
|
if not isinstance(other, ClassModel):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, ClassModel):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class Client(object):
|
|||||||
'client': 'client'
|
'client': 'client'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, client=None): # noqa: E501
|
def __init__(self, client=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Client - a model defined in OpenAPI""" # noqa: E501
|
"""Client - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._client = None
|
self._client = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class Client(object):
|
|||||||
if not isinstance(other, Client):
|
if not isinstance(other, Client):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Client):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Dog(object):
|
class Dog(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class Dog(object):
|
|||||||
'breed': 'breed'
|
'breed': 'breed'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, breed=None): # noqa: E501
|
def __init__(self, breed=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Dog - a model defined in OpenAPI""" # noqa: E501
|
"""Dog - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._breed = None
|
self._breed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class Dog(object):
|
|||||||
if not isinstance(other, Dog):
|
if not isinstance(other, Dog):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Dog):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class DogAllOf(object):
|
class DogAllOf(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class DogAllOf(object):
|
|||||||
'breed': 'breed'
|
'breed': 'breed'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, breed=None): # noqa: E501
|
def __init__(self, breed=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""DogAllOf - a model defined in OpenAPI""" # noqa: E501
|
"""DogAllOf - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._breed = None
|
self._breed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class DogAllOf(object):
|
|||||||
if not isinstance(other, DogAllOf):
|
if not isinstance(other, DogAllOf):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, DogAllOf):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class EnumArrays(object):
|
class EnumArrays(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class EnumArrays(object):
|
|||||||
'array_enum': 'array_enum'
|
'array_enum': 'array_enum'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, just_symbol=None, array_enum=None): # noqa: E501
|
def __init__(self, just_symbol=None, array_enum=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""EnumArrays - a model defined in OpenAPI""" # noqa: E501
|
"""EnumArrays - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._just_symbol = None
|
self._just_symbol = None
|
||||||
self._array_enum = None
|
self._array_enum = None
|
||||||
@ -71,7 +76,7 @@ class EnumArrays(object):
|
|||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
allowed_values = [">=", "$"] # noqa: E501
|
allowed_values = [">=", "$"] # noqa: E501
|
||||||
if just_symbol not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and just_symbol not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `just_symbol` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `just_symbol` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(just_symbol, allowed_values)
|
.format(just_symbol, allowed_values)
|
||||||
@ -98,7 +103,8 @@ class EnumArrays(object):
|
|||||||
:type: list[str]
|
:type: list[str]
|
||||||
"""
|
"""
|
||||||
allowed_values = ["fish", "crab"] # noqa: E501
|
allowed_values = ["fish", "crab"] # noqa: E501
|
||||||
if not set(array_enum).issubset(set(allowed_values)):
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
not set(array_enum).issubset(set(allowed_values))):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid values for `array_enum` [{0}], must be a subset of [{1}]" # noqa: E501
|
"Invalid values for `array_enum` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||||
.format(", ".join(map(str, set(array_enum) - set(allowed_values))), # noqa: E501
|
.format(", ".join(map(str, set(array_enum) - set(allowed_values))), # noqa: E501
|
||||||
@ -144,8 +150,11 @@ class EnumArrays(object):
|
|||||||
if not isinstance(other, EnumArrays):
|
if not isinstance(other, EnumArrays):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, EnumArrays):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class EnumClass(object):
|
class EnumClass(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -43,8 +45,11 @@ class EnumClass(object):
|
|||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self, local_vars_configuration=None): # noqa: E501
|
||||||
"""EnumClass - a model defined in OpenAPI""" # noqa: E501
|
"""EnumClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
@ -84,8 +89,11 @@ class EnumClass(object):
|
|||||||
if not isinstance(other, EnumClass):
|
if not isinstance(other, EnumClass):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, EnumClass):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class EnumTest(object):
|
class EnumTest(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -52,8 +54,11 @@ class EnumTest(object):
|
|||||||
'outer_enum_integer_default_value': 'outerEnumIntegerDefaultValue'
|
'outer_enum_integer_default_value': 'outerEnumIntegerDefaultValue'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None, outer_enum_integer=None, outer_enum_default_value=None, outer_enum_integer_default_value=None): # noqa: E501
|
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None, outer_enum_integer=None, outer_enum_default_value=None, outer_enum_integer_default_value=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""EnumTest - a model defined in OpenAPI""" # noqa: E501
|
"""EnumTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._enum_string = None
|
self._enum_string = None
|
||||||
self._enum_string_required = None
|
self._enum_string_required = None
|
||||||
@ -99,7 +104,7 @@ class EnumTest(object):
|
|||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
||||||
if enum_string not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_string not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_string` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_string` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_string, allowed_values)
|
.format(enum_string, allowed_values)
|
||||||
@ -125,10 +130,10 @@ class EnumTest(object):
|
|||||||
:param enum_string_required: The enum_string_required of this EnumTest. # noqa: E501
|
:param enum_string_required: The enum_string_required of this EnumTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if enum_string_required is None:
|
if self.local_vars_configuration.client_side_validation and enum_string_required is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `enum_string_required`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `enum_string_required`, must not be `None`") # noqa: E501
|
||||||
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
allowed_values = ["UPPER", "lower", ""] # noqa: E501
|
||||||
if enum_string_required not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_string_required not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_string_required` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_string_required` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_string_required, allowed_values)
|
.format(enum_string_required, allowed_values)
|
||||||
@ -155,7 +160,7 @@ class EnumTest(object):
|
|||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
allowed_values = [1, -1] # noqa: E501
|
allowed_values = [1, -1] # noqa: E501
|
||||||
if enum_integer not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_integer not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_integer` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_integer` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_integer, allowed_values)
|
.format(enum_integer, allowed_values)
|
||||||
@ -182,7 +187,7 @@ class EnumTest(object):
|
|||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
allowed_values = [1.1, -1.2] # noqa: E501
|
allowed_values = [1.1, -1.2] # noqa: E501
|
||||||
if enum_number not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_number not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_number` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_number` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_number, allowed_values)
|
.format(enum_number, allowed_values)
|
||||||
@ -311,8 +316,11 @@ class EnumTest(object):
|
|||||||
if not isinstance(other, EnumTest):
|
if not isinstance(other, EnumTest):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, EnumTest):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class File(object):
|
class File(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class File(object):
|
|||||||
'source_uri': 'sourceURI'
|
'source_uri': 'sourceURI'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, source_uri=None): # noqa: E501
|
def __init__(self, source_uri=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""File - a model defined in OpenAPI""" # noqa: E501
|
"""File - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._source_uri = None
|
self._source_uri = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -107,8 +112,11 @@ class File(object):
|
|||||||
if not isinstance(other, File):
|
if not isinstance(other, File):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, File):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class FileSchemaTestClass(object):
|
class FileSchemaTestClass(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class FileSchemaTestClass(object):
|
|||||||
'files': 'files'
|
'files': 'files'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, file=None, files=None): # noqa: E501
|
def __init__(self, file=None, files=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""FileSchemaTestClass - a model defined in OpenAPI""" # noqa: E501
|
"""FileSchemaTestClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._file = None
|
self._file = None
|
||||||
self._files = None
|
self._files = None
|
||||||
@ -131,8 +136,11 @@ class FileSchemaTestClass(object):
|
|||||||
if not isinstance(other, FileSchemaTestClass):
|
if not isinstance(other, FileSchemaTestClass):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, FileSchemaTestClass):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Foo(object):
|
class Foo(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class Foo(object):
|
|||||||
'bar': 'bar'
|
'bar': 'bar'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, bar='bar'): # noqa: E501
|
def __init__(self, bar='bar', local_vars_configuration=None): # noqa: E501
|
||||||
"""Foo - a model defined in OpenAPI""" # noqa: E501
|
"""Foo - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._bar = None
|
self._bar = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class Foo(object):
|
|||||||
if not isinstance(other, Foo):
|
if not isinstance(other, Foo):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Foo):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class FormatTest(object):
|
class FormatTest(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -66,8 +68,11 @@ class FormatTest(object):
|
|||||||
'pattern_with_digits_and_delimiter': 'pattern_with_digits_and_delimiter'
|
'pattern_with_digits_and_delimiter': 'pattern_with_digits_and_delimiter'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None, pattern_with_digits=None, pattern_with_digits_and_delimiter=None): # noqa: E501
|
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None, pattern_with_digits=None, pattern_with_digits_and_delimiter=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""FormatTest - a model defined in OpenAPI""" # noqa: E501
|
"""FormatTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._integer = None
|
self._integer = None
|
||||||
self._int32 = None
|
self._int32 = None
|
||||||
@ -131,9 +136,11 @@ class FormatTest(object):
|
|||||||
:param integer: The integer of this FormatTest. # noqa: E501
|
:param integer: The integer of this FormatTest. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if integer is not None and integer > 100: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
integer is not None and integer > 100): # noqa: E501
|
||||||
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100`") # noqa: E501
|
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100`") # noqa: E501
|
||||||
if integer is not None and integer < 10: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
integer is not None and integer < 10): # noqa: E501
|
||||||
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10`") # noqa: E501
|
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10`") # noqa: E501
|
||||||
|
|
||||||
self._integer = integer
|
self._integer = integer
|
||||||
@ -156,9 +163,11 @@ class FormatTest(object):
|
|||||||
:param int32: The int32 of this FormatTest. # noqa: E501
|
:param int32: The int32 of this FormatTest. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if int32 is not None and int32 > 200: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
int32 is not None and int32 > 200): # noqa: E501
|
||||||
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200`") # noqa: E501
|
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200`") # noqa: E501
|
||||||
if int32 is not None and int32 < 20: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
int32 is not None and int32 < 20): # noqa: E501
|
||||||
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20`") # noqa: E501
|
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20`") # noqa: E501
|
||||||
|
|
||||||
self._int32 = int32
|
self._int32 = int32
|
||||||
@ -202,11 +211,13 @@ class FormatTest(object):
|
|||||||
:param number: The number of this FormatTest. # noqa: E501
|
:param number: The number of this FormatTest. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if number is None:
|
if self.local_vars_configuration.client_side_validation and number is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
|
||||||
if number is not None and number > 543.2: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
number is not None and number > 543.2): # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`") # noqa: E501
|
||||||
if number is not None and number < 32.1: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
number is not None and number < 32.1): # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`") # noqa: E501
|
||||||
|
|
||||||
self._number = number
|
self._number = number
|
||||||
@ -229,9 +240,11 @@ class FormatTest(object):
|
|||||||
:param float: The float of this FormatTest. # noqa: E501
|
:param float: The float of this FormatTest. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if float is not None and float > 987.6: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
float is not None and float > 987.6): # noqa: E501
|
||||||
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`") # noqa: E501
|
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||||
if float is not None and float < 54.3: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
float is not None and float < 54.3): # noqa: E501
|
||||||
raise ValueError("Invalid value for `float`, must be a value greater than or equal to `54.3`") # noqa: E501
|
raise ValueError("Invalid value for `float`, must be a value greater than or equal to `54.3`") # noqa: E501
|
||||||
|
|
||||||
self._float = float
|
self._float = float
|
||||||
@ -254,9 +267,11 @@ class FormatTest(object):
|
|||||||
:param double: The double of this FormatTest. # noqa: E501
|
:param double: The double of this FormatTest. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if double is not None and double > 123.4: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
double is not None and double > 123.4): # noqa: E501
|
||||||
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`") # noqa: E501
|
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||||
if double is not None and double < 67.8: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
double is not None and double < 67.8): # noqa: E501
|
||||||
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`") # noqa: E501
|
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||||
|
|
||||||
self._double = double
|
self._double = double
|
||||||
@ -279,7 +294,8 @@ class FormatTest(object):
|
|||||||
:param string: The string of this FormatTest. # noqa: E501
|
:param string: The string of this FormatTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE): # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE)): # noqa: E501
|
||||||
raise ValueError(r"Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`") # noqa: E501
|
raise ValueError(r"Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`") # noqa: E501
|
||||||
|
|
||||||
self._string = string
|
self._string = string
|
||||||
@ -302,7 +318,7 @@ class FormatTest(object):
|
|||||||
:param byte: The byte of this FormatTest. # noqa: E501
|
:param byte: The byte of this FormatTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if byte is None:
|
if self.local_vars_configuration.client_side_validation and byte is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `byte`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `byte`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._byte = byte
|
self._byte = byte
|
||||||
@ -346,7 +362,7 @@ class FormatTest(object):
|
|||||||
:param date: The date of this FormatTest. # noqa: E501
|
:param date: The date of this FormatTest. # noqa: E501
|
||||||
:type: date
|
:type: date
|
||||||
"""
|
"""
|
||||||
if date is None:
|
if self.local_vars_configuration.client_side_validation and date is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._date = date
|
self._date = date
|
||||||
@ -411,11 +427,13 @@ class FormatTest(object):
|
|||||||
:param password: The password of this FormatTest. # noqa: E501
|
:param password: The password of this FormatTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if password is None:
|
if self.local_vars_configuration.client_side_validation and password is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501
|
||||||
if password is not None and len(password) > 64:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
password is not None and len(password) > 64):
|
||||||
raise ValueError("Invalid value for `password`, length must be less than or equal to `64`") # noqa: E501
|
raise ValueError("Invalid value for `password`, length must be less than or equal to `64`") # noqa: E501
|
||||||
if password is not None and len(password) < 10:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
password is not None and len(password) < 10):
|
||||||
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`") # noqa: E501
|
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`") # noqa: E501
|
||||||
|
|
||||||
self._password = password
|
self._password = password
|
||||||
@ -440,7 +458,8 @@ class FormatTest(object):
|
|||||||
:param pattern_with_digits: The pattern_with_digits of this FormatTest. # noqa: E501
|
:param pattern_with_digits: The pattern_with_digits of this FormatTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if pattern_with_digits is not None and not re.search(r'^\d{10}$', pattern_with_digits): # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
pattern_with_digits is not None and not re.search(r'^\d{10}$', pattern_with_digits)): # noqa: E501
|
||||||
raise ValueError(r"Invalid value for `pattern_with_digits`, must be a follow pattern or equal to `/^\d{10}$/`") # noqa: E501
|
raise ValueError(r"Invalid value for `pattern_with_digits`, must be a follow pattern or equal to `/^\d{10}$/`") # noqa: E501
|
||||||
|
|
||||||
self._pattern_with_digits = pattern_with_digits
|
self._pattern_with_digits = pattern_with_digits
|
||||||
@ -465,7 +484,8 @@ class FormatTest(object):
|
|||||||
:param pattern_with_digits_and_delimiter: The pattern_with_digits_and_delimiter of this FormatTest. # noqa: E501
|
:param pattern_with_digits_and_delimiter: The pattern_with_digits_and_delimiter of this FormatTest. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if pattern_with_digits_and_delimiter is not None and not re.search(r'^image_\d{1,3}$', pattern_with_digits_and_delimiter, flags=re.IGNORECASE): # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
pattern_with_digits_and_delimiter is not None and not re.search(r'^image_\d{1,3}$', pattern_with_digits_and_delimiter, flags=re.IGNORECASE)): # noqa: E501
|
||||||
raise ValueError(r"Invalid value for `pattern_with_digits_and_delimiter`, must be a follow pattern or equal to `/^image_\d{1,3}$/i`") # noqa: E501
|
raise ValueError(r"Invalid value for `pattern_with_digits_and_delimiter`, must be a follow pattern or equal to `/^image_\d{1,3}$/i`") # noqa: E501
|
||||||
|
|
||||||
self._pattern_with_digits_and_delimiter = pattern_with_digits_and_delimiter
|
self._pattern_with_digits_and_delimiter = pattern_with_digits_and_delimiter
|
||||||
@ -507,8 +527,11 @@ class FormatTest(object):
|
|||||||
if not isinstance(other, FormatTest):
|
if not isinstance(other, FormatTest):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, FormatTest):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class HasOnlyReadOnly(object):
|
class HasOnlyReadOnly(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class HasOnlyReadOnly(object):
|
|||||||
'foo': 'foo'
|
'foo': 'foo'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, bar=None, foo=None): # noqa: E501
|
def __init__(self, bar=None, foo=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""HasOnlyReadOnly - a model defined in OpenAPI""" # noqa: E501
|
"""HasOnlyReadOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._bar = None
|
self._bar = None
|
||||||
self._foo = None
|
self._foo = None
|
||||||
@ -131,8 +136,11 @@ class HasOnlyReadOnly(object):
|
|||||||
if not isinstance(other, HasOnlyReadOnly):
|
if not isinstance(other, HasOnlyReadOnly):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, HasOnlyReadOnly):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class HealthCheckResult(object):
|
class HealthCheckResult(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class HealthCheckResult(object):
|
|||||||
'nullable_message': 'NullableMessage'
|
'nullable_message': 'NullableMessage'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, nullable_message=None): # noqa: E501
|
def __init__(self, nullable_message=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""HealthCheckResult - a model defined in OpenAPI""" # noqa: E501
|
"""HealthCheckResult - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._nullable_message = None
|
self._nullable_message = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -104,8 +109,11 @@ class HealthCheckResult(object):
|
|||||||
if not isinstance(other, HealthCheckResult):
|
if not isinstance(other, HealthCheckResult):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, HealthCheckResult):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class InlineObject(object):
|
class InlineObject(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class InlineObject(object):
|
|||||||
'status': 'status'
|
'status': 'status'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None, status=None): # noqa: E501
|
def __init__(self, name=None, status=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""InlineObject - a model defined in OpenAPI""" # noqa: E501
|
"""InlineObject - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self._status = None
|
self._status = None
|
||||||
@ -135,8 +140,11 @@ class InlineObject(object):
|
|||||||
if not isinstance(other, InlineObject):
|
if not isinstance(other, InlineObject):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, InlineObject):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class InlineObject1(object):
|
class InlineObject1(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class InlineObject1(object):
|
|||||||
'file': 'file'
|
'file': 'file'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, additional_metadata=None, file=None): # noqa: E501
|
def __init__(self, additional_metadata=None, file=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""InlineObject1 - a model defined in OpenAPI""" # noqa: E501
|
"""InlineObject1 - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._additional_metadata = None
|
self._additional_metadata = None
|
||||||
self._file = None
|
self._file = None
|
||||||
@ -135,8 +140,11 @@ class InlineObject1(object):
|
|||||||
if not isinstance(other, InlineObject1):
|
if not isinstance(other, InlineObject1):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, InlineObject1):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class InlineObject2(object):
|
class InlineObject2(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class InlineObject2(object):
|
|||||||
'enum_form_string': 'enum_form_string'
|
'enum_form_string': 'enum_form_string'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, enum_form_string_array=None, enum_form_string='-efg'): # noqa: E501
|
def __init__(self, enum_form_string_array=None, enum_form_string='-efg', local_vars_configuration=None): # noqa: E501
|
||||||
"""InlineObject2 - a model defined in OpenAPI""" # noqa: E501
|
"""InlineObject2 - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._enum_form_string_array = None
|
self._enum_form_string_array = None
|
||||||
self._enum_form_string = None
|
self._enum_form_string = None
|
||||||
@ -73,7 +78,8 @@ class InlineObject2(object):
|
|||||||
:type: list[str]
|
:type: list[str]
|
||||||
"""
|
"""
|
||||||
allowed_values = [">", "$"] # noqa: E501
|
allowed_values = [">", "$"] # noqa: E501
|
||||||
if not set(enum_form_string_array).issubset(set(allowed_values)):
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
not set(enum_form_string_array).issubset(set(allowed_values))):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid values for `enum_form_string_array` [{0}], must be a subset of [{1}]" # noqa: E501
|
"Invalid values for `enum_form_string_array` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||||
.format(", ".join(map(str, set(enum_form_string_array) - set(allowed_values))), # noqa: E501
|
.format(", ".join(map(str, set(enum_form_string_array) - set(allowed_values))), # noqa: E501
|
||||||
@ -103,7 +109,7 @@ class InlineObject2(object):
|
|||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
allowed_values = ["_abc", "-efg", "(xyz)"] # noqa: E501
|
allowed_values = ["_abc", "-efg", "(xyz)"] # noqa: E501
|
||||||
if enum_form_string not in allowed_values:
|
if self.local_vars_configuration.client_side_validation and enum_form_string not in allowed_values: # noqa: E501
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid value for `enum_form_string` ({0}), must be one of {1}" # noqa: E501
|
"Invalid value for `enum_form_string` ({0}), must be one of {1}" # noqa: E501
|
||||||
.format(enum_form_string, allowed_values)
|
.format(enum_form_string, allowed_values)
|
||||||
@ -148,8 +154,11 @@ class InlineObject2(object):
|
|||||||
if not isinstance(other, InlineObject2):
|
if not isinstance(other, InlineObject2):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, InlineObject2):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class InlineObject3(object):
|
class InlineObject3(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -64,8 +66,11 @@ class InlineObject3(object):
|
|||||||
'callback': 'callback'
|
'callback': 'callback'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, pattern_without_delimiter=None, byte=None, binary=None, date=None, date_time=None, password=None, callback=None): # noqa: E501
|
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, pattern_without_delimiter=None, byte=None, binary=None, date=None, date_time=None, password=None, callback=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""InlineObject3 - a model defined in OpenAPI""" # noqa: E501
|
"""InlineObject3 - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._integer = None
|
self._integer = None
|
||||||
self._int32 = None
|
self._int32 = None
|
||||||
@ -128,9 +133,11 @@ class InlineObject3(object):
|
|||||||
:param integer: The integer of this InlineObject3. # noqa: E501
|
:param integer: The integer of this InlineObject3. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if integer is not None and integer > 100: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
integer is not None and integer > 100): # noqa: E501
|
||||||
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100`") # noqa: E501
|
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100`") # noqa: E501
|
||||||
if integer is not None and integer < 10: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
integer is not None and integer < 10): # noqa: E501
|
||||||
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10`") # noqa: E501
|
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10`") # noqa: E501
|
||||||
|
|
||||||
self._integer = integer
|
self._integer = integer
|
||||||
@ -155,9 +162,11 @@ class InlineObject3(object):
|
|||||||
:param int32: The int32 of this InlineObject3. # noqa: E501
|
:param int32: The int32 of this InlineObject3. # noqa: E501
|
||||||
:type: int
|
:type: int
|
||||||
"""
|
"""
|
||||||
if int32 is not None and int32 > 200: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
int32 is not None and int32 > 200): # noqa: E501
|
||||||
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200`") # noqa: E501
|
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200`") # noqa: E501
|
||||||
if int32 is not None and int32 < 20: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
int32 is not None and int32 < 20): # noqa: E501
|
||||||
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20`") # noqa: E501
|
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20`") # noqa: E501
|
||||||
|
|
||||||
self._int32 = int32
|
self._int32 = int32
|
||||||
@ -205,11 +214,13 @@ class InlineObject3(object):
|
|||||||
:param number: The number of this InlineObject3. # noqa: E501
|
:param number: The number of this InlineObject3. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if number is None:
|
if self.local_vars_configuration.client_side_validation and number is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must not be `None`") # noqa: E501
|
||||||
if number is not None and number > 543.2: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
number is not None and number > 543.2): # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`") # noqa: E501
|
||||||
if number is not None and number < 32.1: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
number is not None and number < 32.1): # noqa: E501
|
||||||
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`") # noqa: E501
|
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`") # noqa: E501
|
||||||
|
|
||||||
self._number = number
|
self._number = number
|
||||||
@ -234,7 +245,8 @@ class InlineObject3(object):
|
|||||||
:param float: The float of this InlineObject3. # noqa: E501
|
:param float: The float of this InlineObject3. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if float is not None and float > 987.6: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
float is not None and float > 987.6): # noqa: E501
|
||||||
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`") # noqa: E501
|
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||||
|
|
||||||
self._float = float
|
self._float = float
|
||||||
@ -259,11 +271,13 @@ class InlineObject3(object):
|
|||||||
:param double: The double of this InlineObject3. # noqa: E501
|
:param double: The double of this InlineObject3. # noqa: E501
|
||||||
:type: float
|
:type: float
|
||||||
"""
|
"""
|
||||||
if double is None:
|
if self.local_vars_configuration.client_side_validation and double is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `double`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `double`, must not be `None`") # noqa: E501
|
||||||
if double is not None and double > 123.4: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
double is not None and double > 123.4): # noqa: E501
|
||||||
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`") # noqa: E501
|
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||||
if double is not None and double < 67.8: # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
double is not None and double < 67.8): # noqa: E501
|
||||||
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`") # noqa: E501
|
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||||
|
|
||||||
self._double = double
|
self._double = double
|
||||||
@ -288,7 +302,8 @@ class InlineObject3(object):
|
|||||||
:param string: The string of this InlineObject3. # noqa: E501
|
:param string: The string of this InlineObject3. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE): # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
string is not None and not re.search(r'[a-z]', string, flags=re.IGNORECASE)): # noqa: E501
|
||||||
raise ValueError(r"Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`") # noqa: E501
|
raise ValueError(r"Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`") # noqa: E501
|
||||||
|
|
||||||
self._string = string
|
self._string = string
|
||||||
@ -313,9 +328,10 @@ class InlineObject3(object):
|
|||||||
:param pattern_without_delimiter: The pattern_without_delimiter of this InlineObject3. # noqa: E501
|
:param pattern_without_delimiter: The pattern_without_delimiter of this InlineObject3. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if pattern_without_delimiter is None:
|
if self.local_vars_configuration.client_side_validation and pattern_without_delimiter is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `pattern_without_delimiter`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `pattern_without_delimiter`, must not be `None`") # noqa: E501
|
||||||
if pattern_without_delimiter is not None and not re.search(r'^[A-Z].*', pattern_without_delimiter): # noqa: E501
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
pattern_without_delimiter is not None and not re.search(r'^[A-Z].*', pattern_without_delimiter)): # noqa: E501
|
||||||
raise ValueError(r"Invalid value for `pattern_without_delimiter`, must be a follow pattern or equal to `/^[A-Z].*/`") # noqa: E501
|
raise ValueError(r"Invalid value for `pattern_without_delimiter`, must be a follow pattern or equal to `/^[A-Z].*/`") # noqa: E501
|
||||||
|
|
||||||
self._pattern_without_delimiter = pattern_without_delimiter
|
self._pattern_without_delimiter = pattern_without_delimiter
|
||||||
@ -340,7 +356,7 @@ class InlineObject3(object):
|
|||||||
:param byte: The byte of this InlineObject3. # noqa: E501
|
:param byte: The byte of this InlineObject3. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if byte is None:
|
if self.local_vars_configuration.client_side_validation and byte is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `byte`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `byte`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._byte = byte
|
self._byte = byte
|
||||||
@ -434,9 +450,11 @@ class InlineObject3(object):
|
|||||||
:param password: The password of this InlineObject3. # noqa: E501
|
:param password: The password of this InlineObject3. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if password is not None and len(password) > 64:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
password is not None and len(password) > 64):
|
||||||
raise ValueError("Invalid value for `password`, length must be less than or equal to `64`") # noqa: E501
|
raise ValueError("Invalid value for `password`, length must be less than or equal to `64`") # noqa: E501
|
||||||
if password is not None and len(password) < 10:
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
password is not None and len(password) < 10):
|
||||||
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`") # noqa: E501
|
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`") # noqa: E501
|
||||||
|
|
||||||
self._password = password
|
self._password = password
|
||||||
@ -501,8 +519,11 @@ class InlineObject3(object):
|
|||||||
if not isinstance(other, InlineObject3):
|
if not isinstance(other, InlineObject3):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, InlineObject3):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class InlineObject4(object):
|
class InlineObject4(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class InlineObject4(object):
|
|||||||
'param2': 'param2'
|
'param2': 'param2'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, param=None, param2=None): # noqa: E501
|
def __init__(self, param=None, param2=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""InlineObject4 - a model defined in OpenAPI""" # noqa: E501
|
"""InlineObject4 - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._param = None
|
self._param = None
|
||||||
self._param2 = None
|
self._param2 = None
|
||||||
@ -70,7 +75,7 @@ class InlineObject4(object):
|
|||||||
:param param: The param of this InlineObject4. # noqa: E501
|
:param param: The param of this InlineObject4. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if param is None:
|
if self.local_vars_configuration.client_side_validation and param is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `param`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `param`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._param = param
|
self._param = param
|
||||||
@ -95,7 +100,7 @@ class InlineObject4(object):
|
|||||||
:param param2: The param2 of this InlineObject4. # noqa: E501
|
:param param2: The param2 of this InlineObject4. # noqa: E501
|
||||||
:type: str
|
:type: str
|
||||||
"""
|
"""
|
||||||
if param2 is None:
|
if self.local_vars_configuration.client_side_validation and param2 is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `param2`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `param2`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._param2 = param2
|
self._param2 = param2
|
||||||
@ -137,8 +142,11 @@ class InlineObject4(object):
|
|||||||
if not isinstance(other, InlineObject4):
|
if not isinstance(other, InlineObject4):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, InlineObject4):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class InlineObject5(object):
|
class InlineObject5(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class InlineObject5(object):
|
|||||||
'required_file': 'requiredFile'
|
'required_file': 'requiredFile'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, additional_metadata=None, required_file=None): # noqa: E501
|
def __init__(self, additional_metadata=None, required_file=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""InlineObject5 - a model defined in OpenAPI""" # noqa: E501
|
"""InlineObject5 - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._additional_metadata = None
|
self._additional_metadata = None
|
||||||
self._required_file = None
|
self._required_file = None
|
||||||
@ -94,7 +99,7 @@ class InlineObject5(object):
|
|||||||
:param required_file: The required_file of this InlineObject5. # noqa: E501
|
:param required_file: The required_file of this InlineObject5. # noqa: E501
|
||||||
:type: file
|
:type: file
|
||||||
"""
|
"""
|
||||||
if required_file is None:
|
if self.local_vars_configuration.client_side_validation and required_file is None: # noqa: E501
|
||||||
raise ValueError("Invalid value for `required_file`, must not be `None`") # noqa: E501
|
raise ValueError("Invalid value for `required_file`, must not be `None`") # noqa: E501
|
||||||
|
|
||||||
self._required_file = required_file
|
self._required_file = required_file
|
||||||
@ -136,8 +141,11 @@ class InlineObject5(object):
|
|||||||
if not isinstance(other, InlineObject5):
|
if not isinstance(other, InlineObject5):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, InlineObject5):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class InlineResponseDefault(object):
|
class InlineResponseDefault(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class InlineResponseDefault(object):
|
|||||||
'string': 'string'
|
'string': 'string'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, string=None): # noqa: E501
|
def __init__(self, string=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""InlineResponseDefault - a model defined in OpenAPI""" # noqa: E501
|
"""InlineResponseDefault - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._string = None
|
self._string = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class InlineResponseDefault(object):
|
|||||||
if not isinstance(other, InlineResponseDefault):
|
if not isinstance(other, InlineResponseDefault):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, InlineResponseDefault):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class List(object):
|
class List(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -38,8 +40,11 @@ class List(object):
|
|||||||
'_123_list': '123-list'
|
'_123_list': '123-list'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _123_list=None): # noqa: E501
|
def __init__(self, _123_list=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""List - a model defined in OpenAPI""" # noqa: E501
|
"""List - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self.__123_list = None
|
self.__123_list = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -105,8 +110,11 @@ class List(object):
|
|||||||
if not isinstance(other, List):
|
if not isinstance(other, List):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, List):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class MapTest(object):
|
class MapTest(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -44,8 +46,11 @@ class MapTest(object):
|
|||||||
'indirect_map': 'indirect_map'
|
'indirect_map': 'indirect_map'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, map_map_of_string=None, map_of_enum_string=None, direct_map=None, indirect_map=None): # noqa: E501
|
def __init__(self, map_map_of_string=None, map_of_enum_string=None, direct_map=None, indirect_map=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""MapTest - a model defined in OpenAPI""" # noqa: E501
|
"""MapTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._map_map_of_string = None
|
self._map_map_of_string = None
|
||||||
self._map_of_enum_string = None
|
self._map_of_enum_string = None
|
||||||
@ -102,7 +107,8 @@ class MapTest(object):
|
|||||||
:type: dict(str, str)
|
:type: dict(str, str)
|
||||||
"""
|
"""
|
||||||
allowed_values = ["UPPER", "lower"] # noqa: E501
|
allowed_values = ["UPPER", "lower"] # noqa: E501
|
||||||
if not set(map_of_enum_string.keys()).issubset(set(allowed_values)):
|
if (self.local_vars_configuration.client_side_validation and
|
||||||
|
not set(map_of_enum_string.keys()).issubset(set(allowed_values))):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Invalid keys in `map_of_enum_string` [{0}], must be a subset of [{1}]" # noqa: E501
|
"Invalid keys in `map_of_enum_string` [{0}], must be a subset of [{1}]" # noqa: E501
|
||||||
.format(", ".join(map(str, set(map_of_enum_string.keys()) - set(allowed_values))), # noqa: E501
|
.format(", ".join(map(str, set(map_of_enum_string.keys()) - set(allowed_values))), # noqa: E501
|
||||||
@ -190,8 +196,11 @@ class MapTest(object):
|
|||||||
if not isinstance(other, MapTest):
|
if not isinstance(other, MapTest):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, MapTest):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -42,8 +44,11 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
|||||||
'map': 'map'
|
'map': 'map'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, uuid=None, date_time=None, map=None): # noqa: E501
|
def __init__(self, uuid=None, date_time=None, map=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._uuid = None
|
self._uuid = None
|
||||||
self._date_time = None
|
self._date_time = None
|
||||||
@ -157,8 +162,11 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
|||||||
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
|
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
@ -15,6 +15,8 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from petstore_api.configuration import Configuration
|
||||||
|
|
||||||
|
|
||||||
class Model200Response(object):
|
class Model200Response(object):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
@ -40,8 +42,11 @@ class Model200Response(object):
|
|||||||
'_class': 'class'
|
'_class': 'class'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None, _class=None): # noqa: E501
|
def __init__(self, name=None, _class=None, local_vars_configuration=None): # noqa: E501
|
||||||
"""Model200Response - a model defined in OpenAPI""" # noqa: E501
|
"""Model200Response - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
if local_vars_configuration is None:
|
||||||
|
local_vars_configuration = Configuration()
|
||||||
|
self.local_vars_configuration = local_vars_configuration
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.__class = None
|
self.__class = None
|
||||||
@ -131,8 +136,11 @@ class Model200Response(object):
|
|||||||
if not isinstance(other, Model200Response):
|
if not isinstance(other, Model200Response):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
return self.to_dict() == other.to_dict()
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
"""Returns true if both objects are not equal"""
|
"""Returns true if both objects are not equal"""
|
||||||
return not self == other
|
if not isinstance(other, Model200Response):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return self.to_dict() != other.to_dict()
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user