Projekt

Obecné

Profil

Stáhnout (1.51 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 IdParameter(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, id: int=None):  # noqa: E501
18
        """IdParameter - a model defined in Swagger
19
20
        :param id: The id of this IdParameter.  # noqa: E501
21
        :type id: int
22
        """
23
        self.swagger_types = {
24
            'id': int
25
        }
26
27
        self.attribute_map = {
28
            'id': 'id'
29
        }
30
        self._id = id
31
32
    @classmethod
33
    def from_dict(cls, dikt) -> 'IdParameter':
34
        """Returns the dict as a model
35
36
        :param dikt: A dict.
37
        :type: dict
38
        :return: The IdParameter of this IdParameter.  # noqa: E501
39
        :rtype: IdParameter
40
        """
41
        return util.deserialize_model(dikt, cls)
42
43
    @property
44
    def id(self) -> int:
45
        """Gets the id of this IdParameter.
46
47
48
        :return: The id of this IdParameter.
49
        :rtype: int
50
        """
51
        return self._id
52
53
    @id.setter
54
    def id(self, id: int):
55
        """Sets the id of this IdParameter.
56
57
58
        :param id: The id of this IdParameter.
59
        :type id: int
60
        """
61
        if id is None:
62
            raise ValueError("Invalid value for `id`, must not be `None`")  # noqa: E501
63
64
        self._id = id