diff --git a/src/sumo/wrapper/sumo_client.py b/src/sumo/wrapper/sumo_client.py index b473fc9..3ff70b4 100644 --- a/src/sumo/wrapper/sumo_client.py +++ b/src/sumo/wrapper/sumo_client.py @@ -51,6 +51,7 @@ def __init__( raise ValueError(f"Invalid environment: {env}") self.env = env + self._verbosity = verbosity self._retry_strategy = retry_strategy self._client = httpx.Client() @@ -420,6 +421,13 @@ def create_shared_access_key_for_case(self, case_uuid): ).text self.auth.store_shared_access_key_for_case(case_uuid, token) + def client_for_case(self, case_uuid): + """Instantiate and return new SumoClient for accessing the + case identified by "case_uuid*.""" + return SumoClient(env=self.env, verbosity=self._verbosity, + retry_strategy=self._retry_strategy, + timeout=self._timeout, case_uuid=case_uuid) + @raise_for_status_async async def get_async(self, path: str, params: dict = None): """Performs an async GET-request to the Sumo API.