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
RestApiException
ProjectApi create(ProjectInput in) throws RestApiException
RestApiException
ProjectInfo get() throws RestApiException
RestApiException
String description() throws RestApiException
RestApiException
void description(DescriptionInput in) throws RestApiException
RestApiException
ProjectAccessInfo access() throws RestApiException
RestApiException
ProjectAccessInfo access(ProjectAccessInput p) throws RestApiException
RestApiException
ConfigInfo config() throws RestApiException
RestApiException
ConfigInfo config(ConfigInput in) throws RestApiException
RestApiException
ProjectApi.ListRefsRequest<BranchInfo> branches()
ProjectApi.ListRefsRequest<TagInfo> tags()
void deleteBranches(DeleteBranchesInput in) throws RestApiException
RestApiException
void deleteTags(DeleteTagsInput in) throws RestApiException
RestApiException
List<ProjectInfo> children() throws RestApiException
RestApiException
List<ProjectInfo> children(boolean recursive) throws RestApiException
RestApiException
ChildProjectApi child(String name) throws RestApiException
RestApiException
BranchApi 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.