Changeset 041e464 for src/mapservice/src-gen/openapi_server/models
- Timestamp:
- May 1, 2019, 3:55:35 PM (8 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 1e7f556
- Parents:
- be25db1
- Location:
- src/mapservice/src-gen/openapi_server/models
- Files:
-
- 3 edited
-
__init__.py (modified) (1 diff)
-
water.py (modified) (8 diffs)
-
water_creation.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/mapservice/src-gen/openapi_server/models/__init__.py
rbe25db1 r041e464 6 6 from openapi_server.models.http_error import HttpError 7 7 from openapi_server.models.order import Order 8 from openapi_server.models.osm_type import OsmType 8 9 from openapi_server.models.user import User 9 10 from openapi_server.models.user_creation import UserCreation -
src/mapservice/src-gen/openapi_server/models/water.py
rbe25db1 r041e464 9 9 from openapi_server import util 10 10 11 from openapi_server.models.osm_type import OsmType # noqa: E501 11 12 12 13 class Water(Model): … … 16 17 """ 17 18 18 def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None , osm_class=None): # noqa: E50119 def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None): # noqa: E501 19 20 """Water - a model defined in OpenAPI 20 21 … … 28 29 :type osm_id: int 29 30 :param osm_type: The osm_type of this Water. # noqa: E501 30 :type osm_type: str 31 :param osm_class: The osm_class of this Water. # noqa: E501 32 :type osm_class: str 31 :type osm_type: OsmType 33 32 """ 34 33 self.openapi_types = { … … 37 36 'manager': str, 38 37 'osm_id': int, 39 'osm_type': str, 40 'osm_class': str 38 'osm_type': OsmType 41 39 } 42 40 … … 46 44 'manager': 'manager', 47 45 'osm_id': 'osmId', 48 'osm_type': 'osmType', 49 'osm_class': 'osm_class' 46 'osm_type': 'osmType' 50 47 } 51 48 … … 55 52 self._osm_id = osm_id 56 53 self._osm_type = osm_type 57 self._osm_class = osm_class58 54 59 55 @classmethod … … 162 158 163 159 :return: The osm_type of this Water. 164 :rtype: str160 :rtype: OsmType 165 161 """ 166 162 return self._osm_type … … 172 168 173 169 :param osm_type: The osm_type of this Water. 174 :type osm_type: str170 :type osm_type: OsmType 175 171 """ 176 if osm_type is not None and len(osm_type) > 1:177 raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`") # noqa: E501178 if osm_type is not None and len(osm_type) < 1:179 raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`") # noqa: E501180 172 181 173 self._osm_type = osm_type 182 183 @property184 def osm_class(self):185 """Gets the osm_class of this Water.186 187 188 :return: The osm_class of this Water.189 :rtype: str190 """191 return self._osm_class192 193 @osm_class.setter194 def osm_class(self, osm_class):195 """Sets the osm_class of this Water.196 197 198 :param osm_class: The osm_class of this Water.199 :type osm_class: str200 """201 if osm_class is not None and len(osm_class) > 1:202 raise ValueError("Invalid value for `osm_class`, length must be less than or equal to `1`") # noqa: E501203 if osm_class is not None and len(osm_class) < 1:204 raise ValueError("Invalid value for `osm_class`, length must be greater than or equal to `1`") # noqa: E501205 206 self._osm_class = osm_class -
src/mapservice/src-gen/openapi_server/models/water_creation.py
rbe25db1 r041e464 9 9 from openapi_server import util 10 10 11 from openapi_server.models.osm_type import OsmType # noqa: E501 11 12 12 13 class WaterCreation(Model): … … 24 25 :type osm_id: int 25 26 :param osm_type: The osm_type of this WaterCreation. # noqa: E501 26 :type osm_type: str27 :type osm_type: OsmType 27 28 """ 28 29 self.openapi_types = { 29 30 'name': str, 30 31 'osm_id': int, 31 'osm_type': str32 'osm_type': OsmType 32 33 } 33 34 … … 103 104 104 105 :return: The osm_type of this WaterCreation. 105 :rtype: str106 :rtype: OsmType 106 107 """ 107 108 return self._osm_type … … 113 114 114 115 :param osm_type: The osm_type of this WaterCreation. 115 :type osm_type: str116 :type osm_type: OsmType 116 117 """ 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: E501119 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: E501121 118 122 119 self._osm_type = osm_type
Note:
See TracChangeset
for help on using the changeset viewer.
