Skip to content

Commit

Permalink
fix: self review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Giriharan219 committed Nov 7, 2024
1 parent ad7e3f0 commit 5e854a2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/auth/get_workspace_id.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Example of getting workspace ID."""

from nisystemlink.clients.auth import AuthClient
from nisystemlink.clients.auth.utilities import get_workspace_by_name
from nisystemlink.clients.auth.utilities._get_workspace_info import get_workspace_by_name
from nisystemlink.clients.core import ApiException, HttpConfiguration


Expand Down
9 changes: 8 additions & 1 deletion nisystemlink/clients/auth/_auth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,12 @@ def __init__(self, configuration: Optional[core.HttpConfiguration] = None):

@get("auth")
def get_auth_info(self) -> models.AuthInfo:
"""Gets information about the authenticated API Key."""
"""Gets information about the authenticated API Key.
Returns:
models.AuthInfo: Information about the caller.
Raises:
ApiException: if unable to communicate with the Auth Service.
"""
...
3 changes: 3 additions & 0 deletions nisystemlink/clients/auth/utilities/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from nisystemlink.clients.auth.utilities._get_workspace_info import get_workspace_by_name

# flake8: noqa
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Utilities for Auth Client."""
"""Get workspace information."""

from typing import List, Optional

Expand Down

0 comments on commit 5e854a2

Please sign in to comment.