Projekt

Obecné

Profil

Stáhnout (2.38 KB) Statistiky
| Větev: | Tag: | Revize:
1 d35c7f1f Captain_Trojan
# 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 CreatedResponse(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: int=None):  # noqa: E501
18
        """CreatedResponse - a model defined in Swagger
19
20
        :param success: The success of this CreatedResponse.  # noqa: E501
21
        :type success: bool
22
        :param data: The data of this CreatedResponse.  # noqa: E501
23
        :type data: int
24
        """
25
        self.swagger_types = {
26
            'success': bool,
27
            'data': int
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) -> 'CreatedResponse':
39
        """Returns the dict as a model
40
41
        :param dikt: A dict.
42
        :type: dict
43
        :return: The CreatedResponse of this CreatedResponse.  # noqa: E501
44
        :rtype: CreatedResponse
45
        """
46
        return util.deserialize_model(dikt, cls)
47
48
    @property
49
    def success(self) -> bool:
50
        """Gets the success of this CreatedResponse.
51
52
53
        :return: The success of this CreatedResponse.
54
        :rtype: bool
55
        """
56
        return self._success
57
58
    @success.setter
59
    def success(self, success: bool):
60
        """Sets the success of this CreatedResponse.
61
62
63
        :param success: The success of this CreatedResponse.
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) -> int:
73
        """Gets the data of this CreatedResponse.
74
75
76
        :return: The data of this CreatedResponse.
77
        :rtype: int
78
        """
79
        return self._data
80
81
    @data.setter
82
    def data(self, data: int):
83
        """Sets the data of this CreatedResponse.
84
85
86
        :param data: The data of this CreatedResponse.
87
        :type data: int
88
        """
89
        if data is None:
90
            raise ValueError("Invalid value for `data`, must not be `None`")  # noqa: E501
91
92
        self._data = data