PiLocation#
- class fews_py_wrapper.models.PiLocation(*, locationId, description=None, shortName=None, startDateTime=None, endDateTime=None, lat=None, lon=None, x=None, y=None, z=None, parentLocationId=None, relations=<factory>, attributes=<factory>)[source]#
Typed representation of a FEWS PI location entry.
- Parameters:
locationId (str)
description (str | None)
shortName (str | None)
startDateTime (str | None)
endDateTime (str | None)
lat (float | None)
lon (float | None)
x (float | None)
y (float | None)
z (float | None)
parentLocationId (str | None)
relations (list[PiLocationRelation])
attributes (list[PiLocationAttribute])
- location_id: str#
- description: str | None#
- short_name: str | None#
- start_date_time: str | None#
- end_date_time: str | None#
- lat: float | None#
- lon: float | None#
- x: float | None#
- y: float | None#
- z: float | None#
- parent_location_id: str | None#
- relations: list[PiLocationRelation]#
- attributes: list[PiLocationAttribute]#
- model_config = {'extra': 'forbid', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].