| 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.models.gauge import Gauge
|
|---|
| 10 | from openapi_server.models.osm_type import OsmType
|
|---|
| 11 | from openapi_server import util
|
|---|
| 12 |
|
|---|
| 13 | from openapi_server.models.gauge import Gauge # noqa: E501
|
|---|
| 14 | from openapi_server.models.osm_type import OsmType # noqa: E501
|
|---|
| 15 |
|
|---|
| 16 | class Water(Model):
|
|---|
| 17 | """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|---|
| 18 |
|
|---|
| 19 | Do not edit the class manually.
|
|---|
| 20 | """
|
|---|
| 21 |
|
|---|
| 22 | def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None, gauges=None): # noqa: E501
|
|---|
| 23 | """Water - a model defined in OpenAPI
|
|---|
| 24 |
|
|---|
| 25 | :param water_id: The water_id of this Water. # noqa: E501
|
|---|
| 26 | :type water_id: int
|
|---|
| 27 | :param name: The name of this Water. # noqa: E501
|
|---|
| 28 | :type name: str
|
|---|
| 29 | :param manager: The manager of this Water. # noqa: E501
|
|---|
| 30 | :type manager: str
|
|---|
| 31 | :param osm_id: The osm_id of this Water. # noqa: E501
|
|---|
| 32 | :type osm_id: int
|
|---|
| 33 | :param osm_type: The osm_type of this Water. # noqa: E501
|
|---|
| 34 | :type osm_type: OsmType
|
|---|
| 35 | :param gauges: The gauges of this Water. # noqa: E501
|
|---|
| 36 | :type gauges: List[Gauge]
|
|---|
| 37 | """
|
|---|
| 38 | self.openapi_types = {
|
|---|
| 39 | 'water_id': int,
|
|---|
| 40 | 'name': str,
|
|---|
| 41 | 'manager': str,
|
|---|
| 42 | 'osm_id': int,
|
|---|
| 43 | 'osm_type': OsmType,
|
|---|
| 44 | 'gauges': List[Gauge]
|
|---|
| 45 | }
|
|---|
| 46 |
|
|---|
| 47 | self.attribute_map = {
|
|---|
| 48 | 'water_id': 'waterId',
|
|---|
| 49 | 'name': 'name',
|
|---|
| 50 | 'manager': 'manager',
|
|---|
| 51 | 'osm_id': 'osmId',
|
|---|
| 52 | 'osm_type': 'osmType',
|
|---|
| 53 | 'gauges': 'gauges'
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | self._water_id = water_id
|
|---|
| 57 | self._name = name
|
|---|
| 58 | self._manager = manager
|
|---|
| 59 | self._osm_id = osm_id
|
|---|
| 60 | self._osm_type = osm_type
|
|---|
| 61 | self._gauges = gauges
|
|---|
| 62 |
|
|---|
| 63 | @classmethod
|
|---|
| 64 | def from_dict(cls, dikt) -> 'Water':
|
|---|
| 65 | """Returns the dict as a model
|
|---|
| 66 |
|
|---|
| 67 | :param dikt: A dict.
|
|---|
| 68 | :type: dict
|
|---|
| 69 | :return: The Water of this Water. # noqa: E501
|
|---|
| 70 | :rtype: Water
|
|---|
| 71 | """
|
|---|
| 72 | return util.deserialize_model(dikt, cls)
|
|---|
| 73 |
|
|---|
| 74 | @property
|
|---|
| 75 | def water_id(self):
|
|---|
| 76 | """Gets the water_id of this Water.
|
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 | :return: The water_id of this Water.
|
|---|
| 80 | :rtype: int
|
|---|
| 81 | """
|
|---|
| 82 | return self._water_id
|
|---|
| 83 |
|
|---|
| 84 | @water_id.setter
|
|---|
| 85 | def water_id(self, water_id):
|
|---|
| 86 | """Sets the water_id of this Water.
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | :param water_id: The water_id of this Water.
|
|---|
| 90 | :type water_id: int
|
|---|
| 91 | """
|
|---|
| 92 | if water_id is None:
|
|---|
| 93 | raise ValueError("Invalid value for `water_id`, must not be `None`") # noqa: E501
|
|---|
| 94 |
|
|---|
| 95 | self._water_id = water_id
|
|---|
| 96 |
|
|---|
| 97 | @property
|
|---|
| 98 | def name(self):
|
|---|
| 99 | """Gets the name of this Water.
|
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 | :return: The name of this Water.
|
|---|
| 103 | :rtype: str
|
|---|
| 104 | """
|
|---|
| 105 | return self._name
|
|---|
| 106 |
|
|---|
| 107 | @name.setter
|
|---|
| 108 | def name(self, name):
|
|---|
| 109 | """Sets the name of this Water.
|
|---|
| 110 |
|
|---|
| 111 |
|
|---|
| 112 | :param name: The name of this Water.
|
|---|
| 113 | :type name: str
|
|---|
| 114 | """
|
|---|
| 115 | if name is None:
|
|---|
| 116 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|---|
| 117 |
|
|---|
| 118 | self._name = name
|
|---|
| 119 |
|
|---|
| 120 | @property
|
|---|
| 121 | def manager(self):
|
|---|
| 122 | """Gets the manager of this Water.
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 | :return: The manager of this Water.
|
|---|
| 126 | :rtype: str
|
|---|
| 127 | """
|
|---|
| 128 | return self._manager
|
|---|
| 129 |
|
|---|
| 130 | @manager.setter
|
|---|
| 131 | def manager(self, manager):
|
|---|
| 132 | """Sets the manager of this Water.
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 | :param manager: The manager of this Water.
|
|---|
| 136 | :type manager: str
|
|---|
| 137 | """
|
|---|
| 138 |
|
|---|
| 139 | self._manager = manager
|
|---|
| 140 |
|
|---|
| 141 | @property
|
|---|
| 142 | def osm_id(self):
|
|---|
| 143 | """Gets the osm_id of this Water.
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 | :return: The osm_id of this Water.
|
|---|
| 147 | :rtype: int
|
|---|
| 148 | """
|
|---|
| 149 | return self._osm_id
|
|---|
| 150 |
|
|---|
| 151 | @osm_id.setter
|
|---|
| 152 | def osm_id(self, osm_id):
|
|---|
| 153 | """Sets the osm_id of this Water.
|
|---|
| 154 |
|
|---|
| 155 |
|
|---|
| 156 | :param osm_id: The osm_id of this Water.
|
|---|
| 157 | :type osm_id: int
|
|---|
| 158 | """
|
|---|
| 159 |
|
|---|
| 160 | self._osm_id = osm_id
|
|---|
| 161 |
|
|---|
| 162 | @property
|
|---|
| 163 | def osm_type(self):
|
|---|
| 164 | """Gets the osm_type of this Water.
|
|---|
| 165 |
|
|---|
| 166 |
|
|---|
| 167 | :return: The osm_type of this Water.
|
|---|
| 168 | :rtype: OsmType
|
|---|
| 169 | """
|
|---|
| 170 | return self._osm_type
|
|---|
| 171 |
|
|---|
| 172 | @osm_type.setter
|
|---|
| 173 | def osm_type(self, osm_type):
|
|---|
| 174 | """Sets the osm_type of this Water.
|
|---|
| 175 |
|
|---|
| 176 |
|
|---|
| 177 | :param osm_type: The osm_type of this Water.
|
|---|
| 178 | :type osm_type: OsmType
|
|---|
| 179 | """
|
|---|
| 180 |
|
|---|
| 181 | self._osm_type = osm_type
|
|---|
| 182 |
|
|---|
| 183 | @property
|
|---|
| 184 | def gauges(self):
|
|---|
| 185 | """Gets the gauges of this Water.
|
|---|
| 186 |
|
|---|
| 187 |
|
|---|
| 188 | :return: The gauges of this Water.
|
|---|
| 189 | :rtype: List[Gauge]
|
|---|
| 190 | """
|
|---|
| 191 | return self._gauges
|
|---|
| 192 |
|
|---|
| 193 | @gauges.setter
|
|---|
| 194 | def gauges(self, gauges):
|
|---|
| 195 | """Sets the gauges of this Water.
|
|---|
| 196 |
|
|---|
| 197 |
|
|---|
| 198 | :param gauges: The gauges of this Water.
|
|---|
| 199 | :type gauges: List[Gauge]
|
|---|
| 200 | """
|
|---|
| 201 |
|
|---|
| 202 | self._gauges = gauges
|
|---|