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