public interface ProjectApi
| Modifier and Type | Interface and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
ProjectAccessInfo |
access() |
ProjectAccessInfo |
access(ProjectAccessInput p) |
BranchApi |
branch(String ref)
Look up a branch by refname.
|
ProjectApi.ListRefsRequest<BranchInfo> |
branches() |
ChildProjectApi |
child(String name) |
List<ProjectInfo> |
children() |
List<ProjectInfo> |
children(boolean recursive) |
ConfigInfo |
config() |
ConfigInfo |
config(ConfigInput in) |
ProjectApi |
create() |
ProjectApi |
create(ProjectInput in) |
void |
deleteBranches(DeleteBranchesInput in) |
void |
deleteTags(DeleteTagsInput in) |
String |
description() |
void |
description(DescriptionInput in) |
ProjectInfo |
get() |
TagApi |
tag(String ref)
Look up a tag by refname.
|
ProjectApi.ListRefsRequest<TagInfo> |
tags() |
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
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
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.