public interface ProjectApi
| Modifier and Type | Interface and Description |
|---|---|
static class |
ProjectApi.ListDashboardsRequest |
static class |
ProjectApi.ListRefsRequest<T extends RefInfo> |
static class |
ProjectApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the
interface.
|
ProjectApi create() throws RestApiException
RestApiExceptionProjectApi create(ProjectInput in) throws RestApiException
RestApiExceptionProjectInfo get() throws RestApiException
RestApiExceptionString description() throws RestApiException
RestApiExceptionvoid description(DescriptionInput in) throws RestApiException
RestApiExceptionProjectAccessInfo access() throws RestApiException
RestApiExceptionProjectAccessInfo access(ProjectAccessInput p) throws RestApiException
RestApiExceptionChangeInfo accessChange(ProjectAccessInput p) throws RestApiException
RestApiExceptionAccessCheckInfo checkAccess(AccessCheckInput in) throws RestApiException
RestApiExceptionCheckProjectResultInfo check(CheckProjectInput in) throws RestApiException
RestApiExceptionConfigInfo config() throws RestApiException
RestApiExceptionConfigInfo config(ConfigInput in) throws RestApiException
RestApiExceptionProjectApi.ListRefsRequest<BranchInfo> branches()
ProjectApi.ListRefsRequest<TagInfo> tags()
void deleteBranches(DeleteBranchesInput in) throws RestApiException
RestApiExceptionvoid deleteTags(DeleteTagsInput in) throws RestApiException
RestApiExceptionList<ProjectInfo> children() throws RestApiException
RestApiExceptionList<ProjectInfo> children(boolean recursive) throws RestApiException
RestApiExceptionList<ProjectInfo> children(int limit) throws RestApiException
RestApiExceptionChildProjectApi child(String name) throws RestApiException
RestApiExceptionBranchApi branch(String ref) throws RestApiException
Note: This method eagerly reads the branch. Methods that mutate the branch
do not necessarily re-read the branch. Therefore, calling a getter method on an instance after
calling a mutation method on that same instance is not guaranteed to reflect the mutation. It
is not recommended to store references to BranchApi instances.
ref - branch name, with or without "refs/heads/" prefix.RestApiException - if a problem occurred reading the project.TagApi tag(String ref) throws RestApiException
ref - tag name, with or without "refs/tags/" prefix.RestApiException - if a problem occurred reading the project.CommitApi commit(String commit) throws RestApiException
ObjectId string.commit - the ObjectId string.RestApiExceptionDashboardApi dashboard(String name) throws RestApiException
name - the name.RestApiExceptionDashboardApi defaultDashboard() throws RestApiException
RestApiExceptionvoid defaultDashboard(String name) throws RestApiException
name - the dashboard to set as default.RestApiExceptionvoid removeDefaultDashboard()
throws RestApiException
RestApiExceptionProjectApi.ListDashboardsRequest dashboards() throws RestApiException
RestApiExceptionString head() throws RestApiException
HEAD points.RestApiExceptionvoid head(String head) throws RestApiException
HEAD.head - the HEADRestApiExceptionString parent() throws RestApiException
RestApiExceptionvoid parent(String parent) throws RestApiException
parent - the parentRestApiExceptionvoid index(boolean indexChildren)
throws RestApiException
indexChildren is specified.indexChildren - decides if children should be indexed recursivelyRestApiException