public class DAGsHubApi extends Object implements Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
DAGsHubApi(String owner,
String repo,
URI apiRootUrl,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static DAGsHubApi |
create(String repoUrl) |
static DAGsHubApi |
create(String repositoryUrl,
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credentials) |
static DAGsHubApi |
create(String repoUrl,
String user,
String password) |
URI |
getApiRootUrl() |
Branch |
getBranch(String name) |
List<Branch> |
getBranches() |
String |
getOwner() |
PullRequest |
getPull(long index) |
List<PullRequest> |
getPulls() |
String |
getRepo() |
Tag |
getTag(String name) |
List<Tag> |
getTags() |
public static DAGsHubApi create(String repoUrl) throws URISyntaxException
URISyntaxExceptionpublic static DAGsHubApi create(String repoUrl, String user, String password) throws URISyntaxException
URISyntaxExceptionpublic static DAGsHubApi create(String repositoryUrl, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials credentials) throws URISyntaxException
URISyntaxExceptionpublic String getOwner()
public String getRepo()
public URI getApiRootUrl()
public List<Branch> getBranches() throws IOException
IOExceptionpublic Branch getBranch(String name) throws IOException
IOExceptionpublic List<Tag> getTags() throws IOException
IOExceptionpublic Tag getTag(String name) throws IOException
IOExceptionpublic PullRequest getPull(long index) throws IOException
IOExceptionpublic List<PullRequest> getPulls()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016–2021. All rights reserved.