/** * createBuild will create single build; * * @param option option to call trigger new build API * @return build * @throws Wercker4jException fault statusCode and IO error */ public Build createBuild(CreateBuildOption option) throws Wercker4jException { return request.post(option).build(); }
/** * getBuild will retrieve single build * * @param option option to call get Build API * @return single build * @throws Wercker4jException fault statusCode and IO error */ public Build getBuild(GetBuildOption option) throws Wercker4jException { return request.get(option).build(); }
/** * getBuilds will retrieve build summary * * @param option option to call get Builds API * @return list of build summary * @throws Wercker4jException fault statusCode and IO error */ public List<BuildSummary> getBuilds(GetBuildsOption option) throws Wercker4jException { return request.get(option).builds(); }
/** * updateToken will update token * * @param option option to call update token API * @return token * @throws Wercker4jException fault statusCode and IO error */ public Token updateToken(UpdateTokenOption option) throws Wercker4jException { return request.patch(option).token(); }
/** * deleteToken will delete token * * @param option option to call delete token API * @throws Wercker4jException fault statusCode and IO error */ public void deleteToken(DeleteTokenOption option) throws Wercker4jException { request.delete(option); }
/** * getToken will retrieve single token * * @param option option to call token API * @return token * @throws Wercker4jException fault statusCode and IO error */ public Token getToken(GetTokenOption option) throws Wercker4jException { return request.get(option).token(); }
/** * getTokens will retrieve token summary * * @return tokenSummary * @throws Wercker4jException fault statusCode and IO error */ public List<TokenSummary> getTokens() throws Wercker4jException { return request.get().tokens(); }
/** * createToken will create token * * @param option option to call trigger new token API * @return token * @throws Wercker4jException fault statusCode and IO error */ public Token createToken(CreateTokenOption option) throws Wercker4jException { return request.post(option).token(); }
/** * getApplications will retrieve applications of user * * @param option option to call get applications API * @return applications of user * @throws Wercker4jException fault statusCode and IO error */ public List<ApplicationSummary> getApplications(GetApplicationsOption option) throws Wercker4jException { return request.get(option).applications(); }
/** * getApplication will retrieve application * * @param option option to call get application API * @return application * @throws Wercker4jException fault statusCode and IO error */ public Application getApplication(GetApplicationOption option) throws Wercker4jException { return request.get(option).application(); }
/** * getDeploys will retrieve deploy summary * * @param option option to call get deploys API * @return list of deploy summary * @throws Wercker4jException fault statusCode and IO error */ public List<DeploySummary> getDeploys(GetDeploysOption option) throws Wercker4jException { return request.get(option).deploys(); }
/** * getDeploy will retrieve single deploy * * @param option option to call get deploy API * @return single deploy * @throws Wercker4jException fault statusCode and IO error */ public Deploy getDeploy(GetDeployOption option) throws Wercker4jException { return request.get(option).deploy(); }