コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #3
0
 /**
  * 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();
 }
コード例 #4
0
 /**
  * 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();
 }
コード例 #5
0
 /**
  * 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);
 }
コード例 #6
0
 /**
  * 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();
 }
コード例 #7
0
 /**
  * getTokens will retrieve token summary
  *
  * @return tokenSummary
  * @throws Wercker4jException fault statusCode and IO error
  */
 public List<TokenSummary> getTokens() throws Wercker4jException {
   return request.get().tokens();
 }
コード例 #8
0
 /**
  * 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();
 }
コード例 #9
0
 /**
  * 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();
 }
コード例 #10
0
 /**
  * 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();
 }
コード例 #11
0
 /**
  * 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();
 }
コード例 #12
0
 /**
  * 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();
 }