|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +from __future__ import absolute_import |
| 4 | +from datetime import date, datetime # noqa: F401 |
| 5 | + |
| 6 | +from typing import List, Dict # noqa: F401 |
| 7 | + |
| 8 | +from .base_model_ import Model |
| 9 | +from .. import util |
| 10 | + |
| 11 | + |
| 12 | +class ErrorError(Model): |
| 13 | + """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 14 | +
|
| 15 | + Do not edit the class manually. |
| 16 | + """ |
| 17 | + |
| 18 | + def __init__(self, code: int=None, error: str=None, message: str=None, fields: Dict[str, str]=None): # noqa: E501 |
| 19 | + """ErrorError - a model defined in OpenAPI |
| 20 | +
|
| 21 | + :param code: The code of this ErrorError. # noqa: E501 |
| 22 | + :type code: int |
| 23 | + :param error: The error of this ErrorError. # noqa: E501 |
| 24 | + :type error: str |
| 25 | + :param message: The message of this ErrorError. # noqa: E501 |
| 26 | + :type message: str |
| 27 | + :param fields: The fields of this ErrorError. # noqa: E501 |
| 28 | + :type fields: Dict[str, str] |
| 29 | + """ |
| 30 | + self.openapi_types = { |
| 31 | + 'code': int, |
| 32 | + 'error': str, |
| 33 | + 'message': str, |
| 34 | + 'fields': Dict[str, str] |
| 35 | + } |
| 36 | + |
| 37 | + self.attribute_map = { |
| 38 | + 'code': 'code', |
| 39 | + 'error': 'error', |
| 40 | + 'message': 'message', |
| 41 | + 'fields': 'fields' |
| 42 | + } |
| 43 | + |
| 44 | + self._code = code |
| 45 | + self._error = error |
| 46 | + self._message = message |
| 47 | + self._fields = fields |
| 48 | + |
| 49 | + @classmethod |
| 50 | + def from_dict(cls, dikt) -> 'ErrorError': |
| 51 | + """Returns the dict as a model |
| 52 | +
|
| 53 | + :param dikt: A dict. |
| 54 | + :type: dict |
| 55 | + :return: The Error_error of this ErrorError. # noqa: E501 |
| 56 | + :rtype: ErrorError |
| 57 | + """ |
| 58 | + return util.deserialize_model(dikt, cls) |
| 59 | + |
| 60 | + @property |
| 61 | + def code(self) -> int: |
| 62 | + """Gets the code of this ErrorError. |
| 63 | +
|
| 64 | +
|
| 65 | + :return: The code of this ErrorError. |
| 66 | + :rtype: int |
| 67 | + """ |
| 68 | + return self._code |
| 69 | + |
| 70 | + @code.setter |
| 71 | + def code(self, code: int): |
| 72 | + """Sets the code of this ErrorError. |
| 73 | +
|
| 74 | +
|
| 75 | + :param code: The code of this ErrorError. |
| 76 | + :type code: int |
| 77 | + """ |
| 78 | + |
| 79 | + self._code = code |
| 80 | + |
| 81 | + @property |
| 82 | + def error(self) -> str: |
| 83 | + """Gets the error of this ErrorError. |
| 84 | +
|
| 85 | +
|
| 86 | + :return: The error of this ErrorError. |
| 87 | + :rtype: str |
| 88 | + """ |
| 89 | + return self._error |
| 90 | + |
| 91 | + @error.setter |
| 92 | + def error(self, error: str): |
| 93 | + """Sets the error of this ErrorError. |
| 94 | +
|
| 95 | +
|
| 96 | + :param error: The error of this ErrorError. |
| 97 | + :type error: str |
| 98 | + """ |
| 99 | + |
| 100 | + self._error = error |
| 101 | + |
| 102 | + @property |
| 103 | + def message(self) -> str: |
| 104 | + """Gets the message of this ErrorError. |
| 105 | +
|
| 106 | +
|
| 107 | + :return: The message of this ErrorError. |
| 108 | + :rtype: str |
| 109 | + """ |
| 110 | + return self._message |
| 111 | + |
| 112 | + @message.setter |
| 113 | + def message(self, message: str): |
| 114 | + """Sets the message of this ErrorError. |
| 115 | +
|
| 116 | +
|
| 117 | + :param message: The message of this ErrorError. |
| 118 | + :type message: str |
| 119 | + """ |
| 120 | + |
| 121 | + self._message = message |
| 122 | + |
| 123 | + @property |
| 124 | + def fields(self) -> Dict[str, str]: |
| 125 | + """Gets the fields of this ErrorError. |
| 126 | +
|
| 127 | + a dict with error messages specific fot request's fields # noqa: E501 |
| 128 | +
|
| 129 | + :return: The fields of this ErrorError. |
| 130 | + :rtype: Dict[str, str] |
| 131 | + """ |
| 132 | + return self._fields |
| 133 | + |
| 134 | + @fields.setter |
| 135 | + def fields(self, fields: Dict[str, str]): |
| 136 | + """Sets the fields of this ErrorError. |
| 137 | +
|
| 138 | + a dict with error messages specific fot request's fields # noqa: E501 |
| 139 | +
|
| 140 | + :param fields: The fields of this ErrorError. |
| 141 | + :type fields: Dict[str, str] |
| 142 | + """ |
| 143 | + |
| 144 | + self._fields = fields |
0 commit comments