Class EnvironmentRequests
- java.lang.Object
-
- com.github.angleshq.angles.api.requests.BaseRequests
-
- com.github.angleshq.angles.api.requests.EnvironmentRequests
-
public class EnvironmentRequests extends BaseRequests
-
-
Field Summary
-
Fields inherited from class com.github.angleshq.angles.api.requests.BaseRequests
baseUrl, client, gson
-
-
Constructor Summary
Constructors Constructor Description EnvironmentRequests(String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Environmentcreate(Environment environment)Booleandelete(String environmentId)Environment[]get()Environmentget(String environmentId)Environmentupdate(Environment environment)-
Methods inherited from class com.github.angleshq.angles.api.requests.BaseRequests
getDefaultErrorMessage, processErrorResponse, processResponse, sendDelete, sendJSONGet, sendJSONGet, sendJSONPost, sendJSONPut, sendMultiPartEntity
-
-
-
-
Constructor Detail
-
EnvironmentRequests
public EnvironmentRequests(String baseUrl)
-
-
Method Detail
-
create
public Environment create(Environment environment) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
get
public Environment[] get() throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
get
public Environment get(String environmentId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
delete
public Boolean delete(String environmentId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
update
public Environment update(Environment environment) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
-