/** * 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(); }
/** * getTokens will retrieve token summary * * @return tokenSummary * @throws Wercker4jException fault statusCode and IO error */ public List<TokenSummary> getTokens() throws Wercker4jException { return request.get().tokens(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }