Interface ILoginClient
- All Known Implementing Classes:
LoginClient
public interface ILoginClient
Interface for handling login-related API interactions with SAP AI Core.
The ILoginClient
defines methods for retrieving deployments and resource groups
by interacting with the SAP AI Core API.
-
Method Summary
Modifier and TypeMethodDescriptiongetDeployments
(ServiceKey serviceKey, String resourceGroup) Retrieves a list of deployments from the SAP AI Core API.getResourceGroups
(ServiceKey serviceKey) Retrieves a list of resource groups from the SAP AI Core API.
-
Method Details
-
getDeployments
GetDeploymentsResponse getDeployments(ServiceKey serviceKey, String resourceGroup) throws IOException, InterruptedException Retrieves a list of deployments from the SAP AI Core API.- Parameters:
serviceKey
- theServiceKey
containing credentials and service information.resourceGroup
- the resource group for which deployments are to be retrieved.- Returns:
- a
GetDeploymentsResponse
containing the deployments data. - Throws:
IOException
- if an I/O error occurs during the request.InterruptedException
- if the request is interrupted.
-
getResourceGroups
GetResourceGroupsResponse getResourceGroups(ServiceKey serviceKey) throws IOException, InterruptedException Retrieves a list of resource groups from the SAP AI Core API.- Parameters:
serviceKey
- theServiceKey
containing credentials and service information.- Returns:
- a
GetResourceGroupsResponse
containing the resource groups data. - Throws:
IOException
- if an I/O error occurs during the request.InterruptedException
- if the request is interrupted.
-