public class CloudApiClient extends ApiClient
ApiClient.HttpClientFactory
credentials, factory, key, MAX_KEY_SIZE_BB_API, name, owner, repositoryName
Constructor and Description |
---|
CloudApiClient(String username,
String password,
String owner,
String repositoryName,
String key,
String name,
T httpFactory) |
Modifier and Type | Method and Description |
---|---|
void |
deletePullRequestApproval(String pullRequestId) |
void |
deletePullRequestComment(String pullRequestId,
String commentId) |
List<AbstractPullrequest.Comment> |
getPullRequestComments(String commentOwnerName,
String commentRepositoryName,
String pullRequestId) |
List<CloudPullrequest> |
getPullRequests() |
boolean |
hasBuildStatus(String owner,
String repositoryName,
String revision,
String keyEx) |
AbstractPullrequest.Participant |
postPullRequestApproval(String pullRequestId) |
AbstractPullrequest.Comment |
postPullRequestComment(String pullRequestId,
String content) |
void |
setBuildStatus(String owner,
String repositoryName,
String revision,
BuildState state,
String buildUrl,
String comment,
String keyEx) |
void |
updatePullRequestComment(String pullRequestId,
String content,
String commentId) |
buildStatusKey, computeAPIKey, delete, get, getName, parse, parse, parse, post, post, post, put, serializeObject
public List<CloudPullrequest> getPullRequests()
getPullRequests
in class ApiClient
public List<AbstractPullrequest.Comment> getPullRequestComments(String commentOwnerName, String commentRepositoryName, String pullRequestId)
getPullRequestComments
in class ApiClient
public boolean hasBuildStatus(String owner, String repositoryName, String revision, String keyEx)
hasBuildStatus
in class ApiClient
public void setBuildStatus(String owner, String repositoryName, String revision, BuildState state, String buildUrl, String comment, String keyEx)
setBuildStatus
in class ApiClient
public void deletePullRequestApproval(String pullRequestId)
deletePullRequestApproval
in class ApiClient
public void deletePullRequestComment(String pullRequestId, String commentId)
public void updatePullRequestComment(String pullRequestId, String content, String commentId)
public AbstractPullrequest.Participant postPullRequestApproval(String pullRequestId)
postPullRequestApproval
in class ApiClient
public AbstractPullrequest.Comment postPullRequestComment(String pullRequestId, String content)
postPullRequestComment
in class ApiClient
Copyright © 2016–2019. All rights reserved.