# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class Water(Model): """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Do not edit the class manually. """ def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None, osm_class=None): # noqa: E501 """Water - a model defined in OpenAPI :param water_id: The water_id of this Water. # noqa: E501 :type water_id: int :param name: The name of this Water. # noqa: E501 :type name: str :param manager: The manager of this Water. # noqa: E501 :type manager: str :param osm_id: The osm_id of this Water. # noqa: E501 :type osm_id: int :param osm_type: The osm_type of this Water. # noqa: E501 :type osm_type: str :param osm_class: The osm_class of this Water. # noqa: E501 :type osm_class: str """ self.openapi_types = { 'water_id': int, 'name': str, 'manager': str, 'osm_id': int, 'osm_type': str, 'osm_class': str } self.attribute_map = { 'water_id': 'water_id', 'name': 'name', 'manager': 'manager', 'osm_id': 'osm_id', 'osm_type': 'osm_type', 'osm_class': 'osm_class' } self._water_id = water_id self._name = name self._manager = manager self._osm_id = osm_id self._osm_type = osm_type self._osm_class = osm_class @classmethod def from_dict(cls, dikt) -> 'Water': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The Water of this Water. # noqa: E501 :rtype: Water """ return util.deserialize_model(dikt, cls) @property def water_id(self): """Gets the water_id of this Water. :return: The water_id of this Water. :rtype: int """ return self._water_id @water_id.setter def water_id(self, water_id): """Sets the water_id of this Water. :param water_id: The water_id of this Water. :type water_id: int """ if water_id is None: raise ValueError("Invalid value for `water_id`, must not be `None`") # noqa: E501 self._water_id = water_id @property def name(self): """Gets the name of this Water. :return: The name of this Water. :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this Water. :param name: The name of this Water. :type name: str """ if name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def manager(self): """Gets the manager of this Water. :return: The manager of this Water. :rtype: str """ return self._manager @manager.setter def manager(self, manager): """Sets the manager of this Water. :param manager: The manager of this Water. :type manager: str """ self._manager = manager @property def osm_id(self): """Gets the osm_id of this Water. :return: The osm_id of this Water. :rtype: int """ return self._osm_id @osm_id.setter def osm_id(self, osm_id): """Sets the osm_id of this Water. :param osm_id: The osm_id of this Water. :type osm_id: int """ self._osm_id = osm_id @property def osm_type(self): """Gets the osm_type of this Water. :return: The osm_type of this Water. :rtype: str """ return self._osm_type @osm_type.setter def osm_type(self, osm_type): """Sets the osm_type of this Water. :param osm_type: The osm_type of this Water. :type osm_type: str """ if osm_type is not None and len(osm_type) > 1: raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`") # noqa: E501 if osm_type is not None and len(osm_type) < 1: raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`") # noqa: E501 self._osm_type = osm_type @property def osm_class(self): """Gets the osm_class of this Water. :return: The osm_class of this Water. :rtype: str """ return self._osm_class @osm_class.setter def osm_class(self, osm_class): """Sets the osm_class of this Water. :param osm_class: The osm_class of this Water. :type osm_class: str """ if osm_class is not None and len(osm_class) > 1: raise ValueError("Invalid value for `osm_class`, length must be less than or equal to `1`") # noqa: E501 if osm_class is not None and len(osm_class) < 1: raise ValueError("Invalid value for `osm_class`, length must be greater than or equal to `1`") # noqa: E501 self._osm_class = osm_class