Projekt

Obecné

Profil

Stáhnout (2.35 KB) Statistiky
| Větev: | Tag: | Revize:
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 swagger_server.models.base_model_ import Model
9
from swagger_server import util
10

    
11

    
12
class ErrorResponse(Model):
13
    """NOTE: This class is auto generated by the swagger code generator program.
14

    
15
    Do not edit the class manually.
16
    """
17
    def __init__(self, success: bool=None, data: str=None):  # noqa: E501
18
        """ErrorResponse - a model defined in Swagger
19

    
20
        :param success: The success of this ErrorResponse.  # noqa: E501
21
        :type success: bool
22
        :param data: The data of this ErrorResponse.  # noqa: E501
23
        :type data: str
24
        """
25
        self.swagger_types = {
26
            'success': bool,
27
            'data': str
28
        }
29

    
30
        self.attribute_map = {
31
            'success': 'success',
32
            'data': 'data'
33
        }
34
        self._success = success
35
        self._data = data
36

    
37
    @classmethod
38
    def from_dict(cls, dikt) -> 'ErrorResponse':
39
        """Returns the dict as a model
40

    
41
        :param dikt: A dict.
42
        :type: dict
43
        :return: The ErrorResponse of this ErrorResponse.  # noqa: E501
44
        :rtype: ErrorResponse
45
        """
46
        return util.deserialize_model(dikt, cls)
47

    
48
    @property
49
    def success(self) -> bool:
50
        """Gets the success of this ErrorResponse.
51

    
52

    
53
        :return: The success of this ErrorResponse.
54
        :rtype: bool
55
        """
56
        return self._success
57

    
58
    @success.setter
59
    def success(self, success: bool):
60
        """Sets the success of this ErrorResponse.
61

    
62

    
63
        :param success: The success of this ErrorResponse.
64
        :type success: bool
65
        """
66
        if success is None:
67
            raise ValueError("Invalid value for `success`, must not be `None`")  # noqa: E501
68

    
69
        self._success = success
70

    
71
    @property
72
    def data(self) -> str:
73
        """Gets the data of this ErrorResponse.
74

    
75

    
76
        :return: The data of this ErrorResponse.
77
        :rtype: str
78
        """
79
        return self._data
80

    
81
    @data.setter
82
    def data(self, data: str):
83
        """Sets the data of this ErrorResponse.
84

    
85

    
86
        :param data: The data of this ErrorResponse.
87
        :type data: str
88
        """
89
        if data is None:
90
            raise ValueError("Invalid value for `data`, must not be `None`")  # noqa: E501
91

    
92
        self._data = data
(10-10/15)