public class CloudApiClient extends ApiClient
ApiClient.HttpClientFactorycredentials, 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, serializeObjectpublic List<CloudPullrequest> getPullRequests()
getPullRequests in class ApiClientpublic List<AbstractPullrequest.Comment> getPullRequestComments(String commentOwnerName, String commentRepositoryName, String pullRequestId)
getPullRequestComments in class ApiClientpublic boolean hasBuildStatus(String owner, String repositoryName, String revision, String keyEx)
hasBuildStatus in class ApiClientpublic void setBuildStatus(String owner, String repositoryName, String revision, BuildState state, String buildUrl, String comment, String keyEx)
setBuildStatus in class ApiClientpublic void deletePullRequestApproval(String pullRequestId)
deletePullRequestApproval in class ApiClientpublic void deletePullRequestComment(String pullRequestId, String commentId)
public void updatePullRequestComment(String pullRequestId, String content, String commentId)
public AbstractPullrequest.Participant postPullRequestApproval(String pullRequestId)
postPullRequestApproval in class ApiClientpublic AbstractPullrequest.Comment postPullRequestComment(String pullRequestId, String content)
postPullRequestComment in class ApiClientCopyright © 2016–2019. All rights reserved.