Ignore:
Timestamp:
May 1, 2019, 3:55:35 PM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
1e7f556
Parents:
be25db1
Message:

Adding waters is working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/src-gen/openapi_server/models/water.py

    rbe25db1 r041e464  
    99from openapi_server import util
    1010
     11from openapi_server.models.osm_type import OsmType  # noqa: E501
    1112
    1213class Water(Model):
    … …  
    1617    """
    1718
    18     def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None, osm_class=None):  # noqa: E501
     19    def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None):  # noqa: E501
    1920        """Water - a model defined in OpenAPI
    2021
    … …  
    2829        :type osm_id: int
    2930        :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
    3332        """
    3433        self.openapi_types = {
    … …  
    3736            'manager': str,
    3837            'osm_id': int,
    39             'osm_type': str,
    40             'osm_class': str
     38            'osm_type': OsmType
    4139        }
    4240
    … …  
    4644            'manager': 'manager',
    4745            'osm_id': 'osmId',
    48             'osm_type': 'osmType',
    49             'osm_class': 'osm_class'
     46            'osm_type': 'osmType'
    5047        }
    5148
    … …  
    5552        self._osm_id = osm_id
    5653        self._osm_type = osm_type
    57         self._osm_class = osm_class
    5854
    5955    @classmethod
    … …  
    162158
    163159        :return: The osm_type of this Water.
    164         :rtype: str
     160        :rtype: OsmType
    165161        """
    166162        return self._osm_type
    … …  
    172168
    173169        :param osm_type: The osm_type of this Water.
    174         :type osm_type: str
     170        :type osm_type: OsmType
    175171        """
    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: E501
    178         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: E501
    180172
    181173        self._osm_type = osm_type
    182 
    183     @property
    184     def osm_class(self):
    185         """Gets the osm_class of this Water.
    186 
    187 
    188         :return: The osm_class of this Water.
    189         :rtype: str
    190         """
    191         return self._osm_class
    192 
    193     @osm_class.setter
    194     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: str
    200         """
    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: E501
    203         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: E501
    205 
    206         self._osm_class = osm_class
Note: See TracChangeset for help on using the changeset viewer.