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

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

Improved adding Water UI in mapservice-webclient

  • Property mode set to 100644
File size: 3.2 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
11
12class WaterCreation(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, name=None, osm_id=None, osm_type=None): # noqa: E501
19 """WaterCreation - a model defined in OpenAPI
20
21 :param name: The name of this WaterCreation. # noqa: E501
22 :type name: str
23 :param osm_id: The osm_id of this WaterCreation. # noqa: E501
24 :type osm_id: int
25 :param osm_type: The osm_type of this WaterCreation. # noqa: E501
26 :type osm_type: str
27 """
28 self.openapi_types = {
29 'name': str,
30 'osm_id': int,
31 'osm_type': str
32 }
33
34 self.attribute_map = {
35 'name': 'name',
36 'osm_id': 'osmId',
37 'osm_type': 'osmType'
38 }
39
40 self._name = name
41 self._osm_id = osm_id
42 self._osm_type = osm_type
43
44 @classmethod
45 def from_dict(cls, dikt) -> 'WaterCreation':
46 """Returns the dict as a model
47
48 :param dikt: A dict.
49 :type: dict
50 :return: The WaterCreation of this WaterCreation. # noqa: E501
51 :rtype: WaterCreation
52 """
53 return util.deserialize_model(dikt, cls)
54
55 @property
56 def name(self):
57 """Gets the name of this WaterCreation.
58
59
60 :return: The name of this WaterCreation.
61 :rtype: str
62 """
63 return self._name
64
65 @name.setter
66 def name(self, name):
67 """Sets the name of this WaterCreation.
68
69
70 :param name: The name of this WaterCreation.
71 :type name: str
72 """
73 if name is None:
74 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
75
76 self._name = name
77
78 @property
79 def osm_id(self):
80 """Gets the osm_id of this WaterCreation.
81
82
83 :return: The osm_id of this WaterCreation.
84 :rtype: int
85 """
86 return self._osm_id
87
88 @osm_id.setter
89 def osm_id(self, osm_id):
90 """Sets the osm_id of this WaterCreation.
91
92
93 :param osm_id: The osm_id of this WaterCreation.
94 :type osm_id: int
95 """
96
97 self._osm_id = osm_id
98
99 @property
100 def osm_type(self):
101 """Gets the osm_type of this WaterCreation.
102
103
104 :return: The osm_type of this WaterCreation.
105 :rtype: str
106 """
107 return self._osm_type
108
109 @osm_type.setter
110 def osm_type(self, osm_type):
111 """Sets the osm_type of this WaterCreation.
112
113
114 :param osm_type: The osm_type of this WaterCreation.
115 :type osm_type: str
116 """
117 if osm_type is not None and len(osm_type) > 1:
118 raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`") # noqa: E501
119 if osm_type is not None and len(osm_type) < 1:
120 raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`") # noqa: E501
121
122 self._osm_type = osm_type
Note: See TracBrowser for help on using the repository browser.