| [3a89adb] | 1 | # coding: utf-8
|
|---|
| 2 |
|
|---|
| 3 | from __future__ import absolute_import
|
|---|
| 4 | from datetime import date, datetime # noqa: F401
|
|---|
| 5 |
|
|---|
| 6 | from typing import List, Dict # noqa: F401
|
|---|
| 7 |
|
|---|
| 8 | from openapi_server.models.base_model_ import Model
|
|---|
| 9 | from openapi_server import util
|
|---|
| 10 |
|
|---|
| [041e464] | 11 | from openapi_server.models.osm_type import OsmType # noqa: E501
|
|---|
| [3a89adb] | 12 |
|
|---|
| 13 | class Water(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 |
|
|---|
| [041e464] | 19 | def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None): # noqa: E501
|
|---|
| [3a89adb] | 20 | """Water - a model defined in OpenAPI
|
|---|
| 21 |
|
|---|
| 22 | :param water_id: The water_id of this Water. # noqa: E501
|
|---|
| 23 | :type water_id: int
|
|---|
| 24 | :param name: The name of this Water. # noqa: E501
|
|---|
| 25 | :type name: str
|
|---|
| 26 | :param manager: The manager of this Water. # noqa: E501
|
|---|
| 27 | :type manager: str
|
|---|
| 28 | :param osm_id: The osm_id of this Water. # noqa: E501
|
|---|
| 29 | :type osm_id: int
|
|---|
| 30 | :param osm_type: The osm_type of this Water. # noqa: E501
|
|---|
| [041e464] | 31 | :type osm_type: OsmType
|
|---|
| [3a89adb] | 32 | """
|
|---|
| 33 | self.openapi_types = {
|
|---|
| 34 | 'water_id': int,
|
|---|
| 35 | 'name': str,
|
|---|
| 36 | 'manager': str,
|
|---|
| 37 | 'osm_id': int,
|
|---|
| [041e464] | 38 | 'osm_type': OsmType
|
|---|
| [3a89adb] | 39 | }
|
|---|
| 40 |
|
|---|
| 41 | self.attribute_map = {
|
|---|
| [be25db1] | 42 | 'water_id': 'waterId',
|
|---|
| [3a89adb] | 43 | 'name': 'name',
|
|---|
| 44 | 'manager': 'manager',
|
|---|
| [be25db1] | 45 | 'osm_id': 'osmId',
|
|---|
| [041e464] | 46 | 'osm_type': 'osmType'
|
|---|
| [3a89adb] | 47 | }
|
|---|
| 48 |
|
|---|
| 49 | self._water_id = water_id
|
|---|
| 50 | self._name = name
|
|---|
| 51 | self._manager = manager
|
|---|
| 52 | self._osm_id = osm_id
|
|---|
| 53 | self._osm_type = osm_type
|
|---|
| 54 |
|
|---|
| 55 | @classmethod
|
|---|
| 56 | def from_dict(cls, dikt) -> 'Water':
|
|---|
| 57 | """Returns the dict as a model
|
|---|
| 58 |
|
|---|
| 59 | :param dikt: A dict.
|
|---|
| 60 | :type: dict
|
|---|
| 61 | :return: The Water of this Water. # noqa: E501
|
|---|
| 62 | :rtype: Water
|
|---|
| 63 | """
|
|---|
| 64 | return util.deserialize_model(dikt, cls)
|
|---|
| 65 |
|
|---|
| 66 | @property
|
|---|
| 67 | def water_id(self):
|
|---|
| 68 | """Gets the water_id of this Water.
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 | :return: The water_id of this Water.
|
|---|
| 72 | :rtype: int
|
|---|
| 73 | """
|
|---|
| 74 | return self._water_id
|
|---|
| 75 |
|
|---|
| 76 | @water_id.setter
|
|---|
| 77 | def water_id(self, water_id):
|
|---|
| 78 | """Sets the water_id of this Water.
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 | :param water_id: The water_id of this Water.
|
|---|
| 82 | :type water_id: int
|
|---|
| 83 | """
|
|---|
| 84 | if water_id is None:
|
|---|
| 85 | raise ValueError("Invalid value for `water_id`, must not be `None`") # noqa: E501
|
|---|
| 86 |
|
|---|
| 87 | self._water_id = water_id
|
|---|
| 88 |
|
|---|
| 89 | @property
|
|---|
| 90 | def name(self):
|
|---|
| 91 | """Gets the name of this Water.
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 | :return: The name of this Water.
|
|---|
| 95 | :rtype: str
|
|---|
| 96 | """
|
|---|
| 97 | return self._name
|
|---|
| 98 |
|
|---|
| 99 | @name.setter
|
|---|
| 100 | def name(self, name):
|
|---|
| 101 | """Sets the name of this Water.
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 | :param name: The name of this Water.
|
|---|
| 105 | :type name: str
|
|---|
| 106 | """
|
|---|
| 107 | if name is None:
|
|---|
| 108 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|---|
| 109 |
|
|---|
| 110 | self._name = name
|
|---|
| 111 |
|
|---|
| 112 | @property
|
|---|
| 113 | def manager(self):
|
|---|
| 114 | """Gets the manager of this Water.
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 | :return: The manager of this Water.
|
|---|
| 118 | :rtype: str
|
|---|
| 119 | """
|
|---|
| 120 | return self._manager
|
|---|
| 121 |
|
|---|
| 122 | @manager.setter
|
|---|
| 123 | def manager(self, manager):
|
|---|
| 124 | """Sets the manager of this Water.
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 | :param manager: The manager of this Water.
|
|---|
| 128 | :type manager: str
|
|---|
| 129 | """
|
|---|
| 130 |
|
|---|
| 131 | self._manager = manager
|
|---|
| 132 |
|
|---|
| 133 | @property
|
|---|
| 134 | def osm_id(self):
|
|---|
| 135 | """Gets the osm_id of this Water.
|
|---|
| 136 |
|
|---|
| 137 |
|
|---|
| 138 | :return: The osm_id of this Water.
|
|---|
| 139 | :rtype: int
|
|---|
| 140 | """
|
|---|
| 141 | return self._osm_id
|
|---|
| 142 |
|
|---|
| 143 | @osm_id.setter
|
|---|
| 144 | def osm_id(self, osm_id):
|
|---|
| 145 | """Sets the osm_id of this Water.
|
|---|
| 146 |
|
|---|
| 147 |
|
|---|
| 148 | :param osm_id: The osm_id of this Water.
|
|---|
| 149 | :type osm_id: int
|
|---|
| 150 | """
|
|---|
| 151 |
|
|---|
| 152 | self._osm_id = osm_id
|
|---|
| 153 |
|
|---|
| 154 | @property
|
|---|
| 155 | def osm_type(self):
|
|---|
| 156 | """Gets the osm_type of this Water.
|
|---|
| 157 |
|
|---|
| 158 |
|
|---|
| 159 | :return: The osm_type of this Water.
|
|---|
| [041e464] | 160 | :rtype: OsmType
|
|---|
| [3a89adb] | 161 | """
|
|---|
| 162 | return self._osm_type
|
|---|
| 163 |
|
|---|
| 164 | @osm_type.setter
|
|---|
| 165 | def osm_type(self, osm_type):
|
|---|
| 166 | """Sets the osm_type of this Water.
|
|---|
| 167 |
|
|---|
| 168 |
|
|---|
| 169 | :param osm_type: The osm_type of this Water.
|
|---|
| [041e464] | 170 | :type osm_type: OsmType
|
|---|
| [3a89adb] | 171 | """
|
|---|
| 172 |
|
|---|
| 173 | self._osm_type = osm_type
|
|---|