Package co.novu.api.environments
Class EnvironmentHandler
- java.lang.Object
-
- co.novu.api.environments.EnvironmentHandler
-
public class EnvironmentHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description EnvironmentHandler(RestHandler restHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleEnvironmentResponsecreateEnvironment(CreateEnvironmentRequest request)ApiKeyResponsegetApiKeys()SingleEnvironmentResponsegetCurrentEnvironment()BulkEnvironmentResponsegetEnvironments()ApiKeyResponseregenerateApiKeys()SingleEnvironmentResponseupdateEnvironmentById(String environmentId, UpdateEnvironmentRequest request)
-
-
-
Constructor Detail
-
EnvironmentHandler
public EnvironmentHandler(RestHandler restHandler)
-
-
Method Detail
-
getCurrentEnvironment
public SingleEnvironmentResponse getCurrentEnvironment() throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
createEnvironment
public SingleEnvironmentResponse createEnvironment(CreateEnvironmentRequest request) throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
getEnvironments
public BulkEnvironmentResponse getEnvironments() throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
updateEnvironmentById
public SingleEnvironmentResponse updateEnvironmentById(String environmentId, UpdateEnvironmentRequest request) throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
getApiKeys
public ApiKeyResponse getApiKeys() throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
regenerateApiKeys
public ApiKeyResponse regenerateApiKeys() throws IOException, NovuNetworkException
- Throws:
IOExceptionNovuNetworkException
-
-