diff options
Diffstat (limited to 'python_client/fatcat_client/models')
-rw-r--r-- | python_client/fatcat_client/models/error_response.py | 56 | ||||
-rw-r--r-- | python_client/fatcat_client/models/success.py | 29 |
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 |