| 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.osm_type import OsmType
|
|---|
| 10 | from openapi_server import util
|
|---|
| 11 |
|
|---|
| 12 | from openapi_server.models.osm_type import OsmType # noqa: E501
|
|---|
| 13 |
|
|---|
| 14 | class WaterCreation(Model):
|
|---|
| 15 | """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|---|
| 16 |
|
|---|
| 17 | Do not edit the class manually.
|
|---|
| 18 | """
|
|---|
| 19 |
|
|---|
| 20 | def __init__(self, name=None, osm_id=None, osm_type=None): # noqa: E501
|
|---|
| 21 | """WaterCreation - a model defined in OpenAPI
|
|---|
| 22 |
|
|---|
| 23 | :param name: The name of this WaterCreation. # noqa: E501
|
|---|
| 24 | :type name: str
|
|---|
| 25 | :param osm_id: The osm_id of this WaterCreation. # noqa: E501
|
|---|
| 26 | :type osm_id: int
|
|---|
| 27 | :param osm_type: The osm_type of this WaterCreation. # noqa: E501
|
|---|
| 28 | :type osm_type: OsmType
|
|---|
| 29 | """
|
|---|
| 30 | self.openapi_types = {
|
|---|
| 31 | 'name': str,
|
|---|
| 32 | 'osm_id': int,
|
|---|
| 33 | 'osm_type': OsmType
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | self.attribute_map = {
|
|---|
| 37 | 'name': 'name',
|
|---|
| 38 | 'osm_id': 'osmId',
|
|---|
| 39 | 'osm_type': 'osmType'
|
|---|
| 40 | }
|
|---|
| 41 |
|
|---|
| 42 | self._name = name
|
|---|
| 43 | self._osm_id = osm_id
|
|---|
| 44 | self._osm_type = osm_type
|
|---|
| 45 |
|
|---|
| 46 | @classmethod
|
|---|
| 47 | def from_dict(cls, dikt) -> 'WaterCreation':
|
|---|
| 48 | """Returns the dict as a model
|
|---|
| 49 |
|
|---|
| 50 | :param dikt: A dict.
|
|---|
| 51 | :type: dict
|
|---|
| 52 | :return: The WaterCreation of this WaterCreation. # noqa: E501
|
|---|
| 53 | :rtype: WaterCreation
|
|---|
| 54 | """
|
|---|
| 55 | return util.deserialize_model(dikt, cls)
|
|---|
| 56 |
|
|---|
| 57 | @property
|
|---|
| 58 | def name(self):
|
|---|
| 59 | """Gets the name of this WaterCreation.
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | :return: The name of this WaterCreation.
|
|---|
| 63 | :rtype: str
|
|---|
| 64 | """
|
|---|
| 65 | return self._name
|
|---|
| 66 |
|
|---|
| 67 | @name.setter
|
|---|
| 68 | def name(self, name):
|
|---|
| 69 | """Sets the name of this WaterCreation.
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 | :param name: The name of this WaterCreation.
|
|---|
| 73 | :type name: str
|
|---|
| 74 | """
|
|---|
| 75 | if name is None:
|
|---|
| 76 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|---|
| 77 |
|
|---|
| 78 | self._name = name
|
|---|
| 79 |
|
|---|
| 80 | @property
|
|---|
| 81 | def osm_id(self):
|
|---|
| 82 | """Gets the osm_id of this WaterCreation.
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 | :return: The osm_id of this WaterCreation.
|
|---|
| 86 | :rtype: int
|
|---|
| 87 | """
|
|---|
| 88 | return self._osm_id
|
|---|
| 89 |
|
|---|
| 90 | @osm_id.setter
|
|---|
| 91 | def osm_id(self, osm_id):
|
|---|
| 92 | """Sets the osm_id of this WaterCreation.
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 | :param osm_id: The osm_id of this WaterCreation.
|
|---|
| 96 | :type osm_id: int
|
|---|
| 97 | """
|
|---|
| 98 |
|
|---|
| 99 | self._osm_id = osm_id
|
|---|
| 100 |
|
|---|
| 101 | @property
|
|---|
| 102 | def osm_type(self):
|
|---|
| 103 | """Gets the osm_type of this WaterCreation.
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 | :return: The osm_type of this WaterCreation.
|
|---|
| 107 | :rtype: OsmType
|
|---|
| 108 | """
|
|---|
| 109 | return self._osm_type
|
|---|
| 110 |
|
|---|
| 111 | @osm_type.setter
|
|---|
| 112 | def osm_type(self, osm_type):
|
|---|
| 113 | """Sets the osm_type of this WaterCreation.
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 | :param osm_type: The osm_type of this WaterCreation.
|
|---|
| 117 | :type osm_type: OsmType
|
|---|
| 118 | """
|
|---|
| 119 |
|
|---|
| 120 | self._osm_type = osm_type
|
|---|