source: src/mapservice/src-gen/openapi_server/models/water_creation.py@ 1e7f556

debian/bullseye
Last change on this file since 1e7f556 was 041e464, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Adding waters is working

  • Property mode set to 100644
File size: 2.9 KB
Line 
1# coding: utf-8
2
3from __future__ import absolute_import
4from datetime import date, datetime # noqa: F401
5
6from typing import List, Dict # noqa: F401
7
8from openapi_server.models.base_model_ import Model
9from openapi_server import util
10
11from openapi_server.models.osm_type import OsmType # noqa: E501
12
13class WaterCreation(Model):
14 """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
16 Do not edit the class manually.
17 """
18
19 def __init__(self, name=None, osm_id=None, osm_type=None): # noqa: E501
20 """WaterCreation - a model defined in OpenAPI
21
22 :param name: The name of this WaterCreation. # noqa: E501
23 :type name: str
24 :param osm_id: The osm_id of this WaterCreation. # noqa: E501
25 :type osm_id: int
26 :param osm_type: The osm_type of this WaterCreation. # noqa: E501
27 :type osm_type: OsmType
28 """
29 self.openapi_types = {
30 'name': str,
31 'osm_id': int,
32 'osm_type': OsmType
33 }
34
35 self.attribute_map = {
36 'name': 'name',
37 'osm_id': 'osmId',
38 'osm_type': 'osmType'
39 }
40
41 self._name = name
42 self._osm_id = osm_id
43 self._osm_type = osm_type
44
45 @classmethod
46 def from_dict(cls, dikt) -> 'WaterCreation':
47 """Returns the dict as a model
48
49 :param dikt: A dict.
50 :type: dict
51 :return: The WaterCreation of this WaterCreation. # noqa: E501
52 :rtype: WaterCreation
53 """
54 return util.deserialize_model(dikt, cls)
55
56 @property
57 def name(self):
58 """Gets the name of this WaterCreation.
59
60
61 :return: The name of this WaterCreation.
62 :rtype: str
63 """
64 return self._name
65
66 @name.setter
67 def name(self, name):
68 """Sets the name of this WaterCreation.
69
70
71 :param name: The name of this WaterCreation.
72 :type name: str
73 """
74 if name is None:
75 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
76
77 self._name = name
78
79 @property
80 def osm_id(self):
81 """Gets the osm_id of this WaterCreation.
82
83
84 :return: The osm_id of this WaterCreation.
85 :rtype: int
86 """
87 return self._osm_id
88
89 @osm_id.setter
90 def osm_id(self, osm_id):
91 """Sets the osm_id of this WaterCreation.
92
93
94 :param osm_id: The osm_id of this WaterCreation.
95 :type osm_id: int
96 """
97
98 self._osm_id = osm_id
99
100 @property
101 def osm_type(self):
102 """Gets the osm_type of this WaterCreation.
103
104
105 :return: The osm_type of this WaterCreation.
106 :rtype: OsmType
107 """
108 return self._osm_type
109
110 @osm_type.setter
111 def osm_type(self, osm_type):
112 """Sets the osm_type of this WaterCreation.
113
114
115 :param osm_type: The osm_type of this WaterCreation.
116 :type osm_type: OsmType
117 """
118
119 self._osm_type = osm_type
Note: See TracBrowser for help on using the repository browser.