Class EnvironmentAPIServiceImpl
- java.lang.Object
-
- org.jenkinsci.plugins.torque.service.EnvironmentAPIServiceImpl
-
- All Implemented Interfaces:
EnvironmentAPIService
public class EnvironmentAPIServiceImpl extends Object implements EnvironmentAPIService
-
-
Constructor Summary
Constructors Constructor Description EnvironmentAPIServiceImpl(EnvironmentServiceConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseData<CreateEnvResponse>
createEnvironment(String spaceName, CreateSandboxRequest req)
ResponseData<Void>
deleteEnvironment(String spaceName, String environmentId)
<T> ResponseData<T>
execute(retrofit2.Call<T> call)
ResponseData<EnvironmentResponse>
getEnvironmentById(String spaceName, String environmentId)
-
-
-
Constructor Detail
-
EnvironmentAPIServiceImpl
public EnvironmentAPIServiceImpl(EnvironmentServiceConnection connection)
-
-
Method Detail
-
getEnvironmentById
public ResponseData<EnvironmentResponse> getEnvironmentById(String spaceName, String environmentId) throws RuntimeException, IOException
- Specified by:
getEnvironmentById
in interfaceEnvironmentAPIService
- Throws:
RuntimeException
IOException
-
createEnvironment
public ResponseData<CreateEnvResponse> createEnvironment(String spaceName, CreateSandboxRequest req) throws IOException
- Specified by:
createEnvironment
in interfaceEnvironmentAPIService
- Throws:
IOException
-
deleteEnvironment
public ResponseData<Void> deleteEnvironment(String spaceName, String environmentId) throws IOException
- Specified by:
deleteEnvironment
in interfaceEnvironmentAPIService
- Throws:
IOException
-
execute
public <T> ResponseData<T> execute(retrofit2.Call<T> call) throws IOException
- Throws:
IOException
-
-