aboutsummaryrefslogtreecommitdiffstats
path: root/python_client
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-09 16:19:35 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-09 16:19:35 -0800
commit20cc3a7631d59dc80d5c6783b05af82f5b099f25 (patch)
tree668813c5a1f48ea39417f93794274a91b7f83597 /python_client
parente3a9b020283c62c8335f2f1124eab304074e3415 (diff)
downloadfatcat-20cc3a7631d59dc80d5c6783b05af82f5b099f25.tar.gz
fatcat-20cc3a7631d59dc80d5c6783b05af82f5b099f25.zip
python codegen
Diffstat (limited to 'python_client')
-rw-r--r--python_client/fatcat_client/models/error_response.py56
-rw-r--r--python_client/fatcat_client/models/success.py29
2 files changed, 83 insertions, 2 deletions
diff --git a/python_client/fatcat_client/models/error_response.py b/python_client/fatcat_client/models/error_response.py
index 3e5d3488..aa8a1bdb 100644
--- a/python_client/fatcat_client/models/error_response.py
+++ b/python_client/fatcat_client/models/error_response.py
@@ -31,22 +31,76 @@ class ErrorResponse(object):
and the value is json key in definition.
"""
swagger_types = {
+ 'success': 'bool',
+ 'error': 'str',
'message': 'str'
}
attribute_map = {
+ 'success': 'success',
+ 'error': 'error',
'message': 'message'
}
- def __init__(self, message=None): # noqa: E501
+ def __init__(self, success=None, error=None, message=None): # noqa: E501
"""ErrorResponse - a model defined in Swagger""" # noqa: E501
+ self._success = None
+ self._error = None
self._message = None
self.discriminator = None
+ self.success = success
+ self.error = error
self.message = message
@property
+ def success(self):
+ """Gets the success of this ErrorResponse. # noqa: E501
+
+
+ :return: The success of this ErrorResponse. # noqa: E501
+ :rtype: bool
+ """
+ return self._success
+
+ @success.setter
+ def success(self, success):
+ """Sets the success of this ErrorResponse.
+
+
+ :param success: The success of this ErrorResponse. # noqa: E501
+ :type: bool
+ """
+ if success is None:
+ raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
+
+ self._success = success
+
+ @property
+ def error(self):
+ """Gets the error of this ErrorResponse. # noqa: E501
+
+
+ :return: The error of this ErrorResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._error
+
+ @error.setter
+ def error(self, error):
+ """Sets the error of this ErrorResponse.
+
+
+ :param error: The error of this ErrorResponse. # noqa: E501
+ :type: str
+ """
+ if error is None:
+ raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
+
+ self._error = error
+
+ @property
def message(self):
"""Gets the message of this ErrorResponse. # noqa: E501
diff --git a/python_client/fatcat_client/models/success.py b/python_client/fatcat_client/models/success.py
index 56cbd63a..659bfaaf 100644
--- a/python_client/fatcat_client/models/success.py
+++ b/python_client/fatcat_client/models/success.py
@@ -31,22 +31,49 @@ class Success(object):
and the value is json key in definition.
"""
swagger_types = {
+ 'success': 'bool',
'message': 'str'
}
attribute_map = {
+ 'success': 'success',
'message': 'message'
}
- def __init__(self, message=None): # noqa: E501
+ def __init__(self, success=None, message=None): # noqa: E501
"""Success - a model defined in Swagger""" # noqa: E501
+ self._success = None
self._message = None
self.discriminator = None
+ self.success = success
self.message = message
@property
+ def success(self):
+ """Gets the success of this Success. # noqa: E501
+
+
+ :return: The success of this Success. # noqa: E501
+ :rtype: bool
+ """
+ return self._success
+
+ @success.setter
+ def success(self, success):
+ """Sets the success of this Success.
+
+
+ :param success: The success of this Success. # noqa: E501
+ :type: bool
+ """
+ if success is None:
+ raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
+
+ self._success = success
+
+ @property
def message(self):
"""Gets the message of this Success. # noqa: E501