Class BuildRequests
- java.lang.Object
-
- com.github.angleshq.angles.api.requests.BaseRequests
-
- com.github.angleshq.angles.api.requests.BuildRequests
-
public class BuildRequests extends BaseRequests
-
-
Field Summary
-
Fields inherited from class com.github.angleshq.angles.api.requests.BaseRequests
baseUrl, client, gson
-
-
Constructor Summary
Constructors Constructor Description BuildRequests(String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Buildartifacts(String buildId, Artifact artifact)Buildartifacts(String buildId, Artifact[] artifacts)Buildcreate(CreateBuild createBuild)Booleandelete(String buildId)Buildget(String buildId)Build[]get(String teamId, Integer limit, Integer skip)Buildkeep(String buildId, Boolean keep)Buildupdate(Build build)-
Methods inherited from class com.github.angleshq.angles.api.requests.BaseRequests
getDefaultErrorMessage, processErrorResponse, processResponse, sendDelete, sendJSONGet, sendJSONGet, sendJSONPost, sendJSONPut, sendMultiPartEntity
-
-
-
-
Constructor Detail
-
BuildRequests
public BuildRequests(String baseUrl)
-
-
Method Detail
-
create
public Build create(CreateBuild createBuild) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
get
public Build[] get(String teamId, Integer limit, Integer skip) throws IOException, URISyntaxException, AnglesServerException
-
get
public Build get(String buildId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
delete
public Boolean delete(String buildId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
update
public Build update(Build build) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
keep
public Build keep(String buildId, Boolean keep) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
artifacts
public Build artifacts(String buildId, Artifact artifact) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
artifacts
public Build artifacts(String buildId, Artifact[] artifacts) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
-