Changeset 041e464 for src/mapservice/src-gen/openapi_server
- Timestamp:
- May 1, 2019, 3:55:35 PM (8 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 1e7f556
- Parents:
- be25db1
- Location:
- src/mapservice/src-gen/openapi_server
- Files:
-
- 1 deleted
- 4 edited
-
models/__init__.py (modified) (1 diff)
-
models/water.py (modified) (8 diffs)
-
models/water_creation.py (modified) (4 diffs)
-
openapi/openapi.yaml (modified) (11 diffs)
-
test/test_default_controller.py (deleted)
Legend:
- Unmodified
- Added
- Removed
-
src/mapservice/src-gen/openapi_server/models/__init__.py
rbe25db1 r041e464 6 6 from openapi_server.models.http_error import HttpError 7 7 from openapi_server.models.order import Order 8 from openapi_server.models.osm_type import OsmType 8 9 from openapi_server.models.user import User 9 10 from openapi_server.models.user_creation import UserCreation -
src/mapservice/src-gen/openapi_server/models/water.py
rbe25db1 r041e464 9 9 from openapi_server import util 10 10 11 from openapi_server.models.osm_type import OsmType # noqa: E501 11 12 12 13 class Water(Model): … … 16 17 """ 17 18 18 def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None , osm_class=None): # noqa: E50119 def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None): # noqa: E501 19 20 """Water - a model defined in OpenAPI 20 21 … … 28 29 :type osm_id: int 29 30 :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 33 32 """ 34 33 self.openapi_types = { … … 37 36 'manager': str, 38 37 'osm_id': int, 39 'osm_type': str, 40 'osm_class': str 38 'osm_type': OsmType 41 39 } 42 40 … … 46 44 'manager': 'manager', 47 45 'osm_id': 'osmId', 48 'osm_type': 'osmType', 49 'osm_class': 'osm_class' 46 'osm_type': 'osmType' 50 47 } 51 48 … … 55 52 self._osm_id = osm_id 56 53 self._osm_type = osm_type 57 self._osm_class = osm_class58 54 59 55 @classmethod … … 162 158 163 159 :return: The osm_type of this Water. 164 :rtype: str160 :rtype: OsmType 165 161 """ 166 162 return self._osm_type … … 172 168 173 169 :param osm_type: The osm_type of this Water. 174 :type osm_type: str170 :type osm_type: OsmType 175 171 """ 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: E501178 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: E501180 172 181 173 self._osm_type = osm_type 182 183 @property184 def osm_class(self):185 """Gets the osm_class of this Water.186 187 188 :return: The osm_class of this Water.189 :rtype: str190 """191 return self._osm_class192 193 @osm_class.setter194 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: str200 """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: E501203 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: E501205 206 self._osm_class = osm_class -
src/mapservice/src-gen/openapi_server/models/water_creation.py
rbe25db1 r041e464 9 9 from openapi_server import util 10 10 11 from openapi_server.models.osm_type import OsmType # noqa: E501 11 12 12 13 class WaterCreation(Model): … … 24 25 :type osm_id: int 25 26 :param osm_type: The osm_type of this WaterCreation. # noqa: E501 26 :type osm_type: str27 :type osm_type: OsmType 27 28 """ 28 29 self.openapi_types = { 29 30 'name': str, 30 31 'osm_id': int, 31 'osm_type': str32 'osm_type': OsmType 32 33 } 33 34 … … 103 104 104 105 :return: The osm_type of this WaterCreation. 105 :rtype: str106 :rtype: OsmType 106 107 """ 107 108 return self._osm_type … … 113 114 114 115 :param osm_type: The osm_type of this WaterCreation. 115 :type osm_type: str116 :type osm_type: OsmType 116 117 """ 117 if osm_type is not None and len(osm_type) > 1:118 raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`") # noqa: E501119 if osm_type is not None and len(osm_type) < 1:120 raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`") # noqa: E501121 118 122 119 self._osm_type = osm_type -
src/mapservice/src-gen/openapi_server/openapi/openapi.yaml
rbe25db1 r041e464 235 235 required: false 236 236 schema: 237 $ref: '#/components/schemas/item _name'237 $ref: '#/components/schemas/itemName' 238 238 style: form 239 239 - example: jane … … 297 297 content: 298 298 application/json: 299 examples: 300 Water: 301 $ref: '#/components/examples/WaterCreation' 299 example: 300 name: Rhein 301 osmId: 1756854 302 osmType: Relation 302 303 schema: 303 304 $ref: '#/components/schemas/WaterCreation' … … 348 349 required: true 349 350 schema: 350 $ref: '#/components/schemas/item _id'351 $ref: '#/components/schemas/itemId' 351 352 style: simple 352 353 responses: … … 398 399 osmId: 1756854 399 400 osmType: R 400 link: http://gnuboat.engsas.com/mapservice/v1/waters/1401 401 WaterCreation: 402 402 summary: A water example object for creation of a water … … 404 404 name: Mississippi 405 405 osmId: 1756854 406 osmType: R 406 osmType: Relation 407 407 waters: 408 408 summary: A sample list with waters … … 411 411 name: Mississippi 412 412 osmId: 1756854 413 osmType: R 414 link: http://gnuboat.engsas.com/mapservice/v1/waters/1 413 osmType: Relation 415 414 - waterId: 2 416 415 name: Bodensee 417 link: http://gnuboat.engsas.com/mapservice/v1/waters/2418 416 HttpError: 419 417 value: … … 508 506 title: Activation code for a User 509 507 type: string 510 item _id:508 itemId: 511 509 format: int32 512 510 title: Item ID 513 511 type: integer 514 item _name:512 itemName: 515 513 title: Item Name 516 514 type: string 517 515 osmType: 518 maxLength: 1 519 minLength: 1 516 enum: 517 - Node 518 - Way 519 - Relation 520 title: OSM type of item (N|W|R) 520 521 type: string 521 522 User: … … 580 581 osmId: 6 581 582 name: name 582 osmType: osmType583 osm_class: osm_class584 583 waterId: 0 585 584 properties: … … 599 598 type: integer 600 599 osmType: 601 maxLength: 1 602 minLength: 1 603 type: string 604 osm_class: 605 maxLength: 1 606 minLength: 1 607 type: string 600 $ref: '#/components/schemas/osmType' 608 601 required: 609 602 - name … … 615 608 osmId: 0 616 609 name: name 617 osmType: osmType618 610 properties: 619 611 name: … … 625 617 type: integer 626 618 osmType: 627 maxLength: 1 628 minLength: 1 629 type: string 619 $ref: '#/components/schemas/osmType' 630 620 required: 631 621 - name
Note:
See TracChangeset
for help on using the changeset viewer.
