Skip to content

Commit

Permalink
adapt docs
Browse files Browse the repository at this point in the history
  • Loading branch information
denizs committed Aug 16, 2024
1 parent 0e74808 commit 9c8c207
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 89 deletions.
9 changes: 9 additions & 0 deletions docs/api_client/client.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Platform API Client
==========================

.. currentmodule:: enlyze.api_client.client

.. autoclass:: _PaginatedResponse

.. autoclass:: PlatformApiClient()
:members:
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,22 +1,47 @@
Models
======

.. currentmodule:: enlyze.api_clients.production_runs.models
.. currentmodule:: enlyze.api_client.models

.. autoclass:: ProductionRunsApiModel()
.. autoclass:: PlatformApiModel()

.. autoclass:: ProductionRun()
.. autoclass:: Site()
:members:
:undoc-members:
:exclude-members: model_config, model_fields
:show-inheritance:

.. autoclass:: MachineBase()
:members:
:undoc-members:
:exclude-members: model_config, model_fields
:show-inheritance:


.. autoclass:: Machine()
:members:
:undoc-members:
:exclude-members: model_config, model_fields
:show-inheritance:

.. autoclass:: Variable()
:members:
:undoc-members:
:exclude-members: model_config, model_fields
:show-inheritance:

.. autoclass:: TimeseriesData()
:members:
:undoc-members:
:exclude-members: model_config, model_fields
:show-inheritance:

.. autoclass:: ProductionRun()
:members:
:undoc-members:
:exclude-members: model_config, model_fields
:show-inheritance:

.. autoclass:: Quantity()
:members:
:undoc-members:
Expand Down
17 changes: 0 additions & 17 deletions docs/api_clients/base.rst

This file was deleted.

9 changes: 0 additions & 9 deletions docs/api_clients/index.rst

This file was deleted.

9 changes: 0 additions & 9 deletions docs/api_clients/production_runs/client.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/api_clients/production_runs/index.rst

This file was deleted.

11 changes: 0 additions & 11 deletions docs/api_clients/timeseries/client.rst

This file was deleted.

30 changes: 0 additions & 30 deletions docs/api_clients/timeseries/models.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ User's Guide
models
errors
constants
api_clients/index
api_client/index
1 change: 1 addition & 0 deletions src/enlyze/api_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def get_paginated(
self, api_path: str, model: Type[T], **kwargs: Any
) -> Iterator[T]:
"""Retrieve objects from paginated ENLYZE Platform API endpoint via HTTP GET
:param api_path: Relative URL path inside the ENLYZE Platform API
:param model: Class derived from
:class:`~enlyze.api_client.models.PlatformApiModel`
Expand Down
5 changes: 4 additions & 1 deletion src/enlyze/api_client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def to_user_model(self) -> user_models.Site:


class MachineBase(PlatformApiModel):
"""The machine related information returned for a
:class:`.ProductionRun`"""

name: str
uuid: UUID

Expand Down Expand Up @@ -159,7 +162,7 @@ def to_user_model(self) -> user_models.Quantity:

class ProductionRun(PlatformApiModel):
uuid: UUID
machine: MachineBase = Field(alias="appliance")
machine: MachineBase
average_throughput: Optional[float]
production_order: str
product: Product
Expand Down

0 comments on commit 9c8c207

Please sign in to comment.