Skip to content

Commit

Permalink
feat: implement clients for plugins collection
Browse files Browse the repository at this point in the history
  • Loading branch information
jkglasbrenner committed Oct 4, 2024
1 parent 5191130 commit 5474a04
Show file tree
Hide file tree
Showing 2 changed files with 625 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/dioptra/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from .auth import AuthCollectionClient
from .base import DioptraResponseProtocol, DioptraSession
from .plugins import PluginsCollectionClient
from .queues import QueuesCollectionClient
from .tags import TagsCollectionClient
from .users import UsersCollectionClient
Expand Down Expand Up @@ -50,7 +51,7 @@ def __init__(self, session: DioptraSession[T]) -> None:
self._queues = QueuesCollectionClient[T](session)
self._tags = TagsCollectionClient[T](session)
# self._groups = GroupsCollectionClient[T](session)
# self._plugins = PluginsCollectionClient[T](session)
self._plugins = PluginsCollectionClient[T](session)
# self._plugin_parameter_types = (
# PluginParameterTypesCollectionClient[T](session)
# )
Expand Down Expand Up @@ -85,10 +86,10 @@ def tags(self) -> TagsCollectionClient[T]:
# """The client for managing Dioptra's /groups collection."""
# return self._groups

# @property
# def plugins(self) -> PluginsCollectionClient[T]:
# """The client for managing Dioptra's /plugins collection."""
# return self._plugins
@property
def plugins(self) -> PluginsCollectionClient[T]:
"""The client for managing Dioptra's /plugins collection."""
return self._plugins

# @property
# def plugin_parameter_types(self) -> PluginParameterTypesCollectionClient[T]:
Expand Down
Loading

0 comments on commit 5474a04

Please sign in to comment.