public class ProjectApiImpl extends java.lang.Object implements ProjectApi
ProjectApi.ListRefsRequest<T extends RefInfo>, ProjectApi.NotImplemented
Modifier and Type | Method and Description |
---|---|
ProjectAccessInfo |
access() |
ProjectAccessInfo |
access(ProjectAccessInput p) |
BranchApi |
branch(java.lang.String ref)
Look up a branch by refname.
|
ProjectApi.ListRefsRequest<BranchInfo> |
branches() |
ChildProjectApi |
child(java.lang.String name) |
java.util.List<ProjectInfo> |
children() |
java.util.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) |
java.lang.String |
description() |
void |
description(DescriptionInput in) |
ProjectInfo |
get() |
TagApi |
tag(java.lang.String ref)
Look up a tag by refname.
|
ProjectApi.ListRefsRequest<TagInfo> |
tags() |
public ProjectApi create() throws RestApiException
create
in interface ProjectApi
RestApiException
public ProjectApi create(ProjectInput in) throws RestApiException
create
in interface ProjectApi
RestApiException
public ProjectInfo get() throws RestApiException
get
in interface ProjectApi
RestApiException
public java.lang.String description() throws RestApiException
description
in interface ProjectApi
RestApiException
public ProjectAccessInfo access() throws RestApiException
access
in interface ProjectApi
RestApiException
public ProjectAccessInfo access(ProjectAccessInput p) throws RestApiException
access
in interface ProjectApi
RestApiException
public void description(DescriptionInput in) throws RestApiException
description
in interface ProjectApi
RestApiException
public ConfigInfo config() throws RestApiException
config
in interface ProjectApi
RestApiException
public ConfigInfo config(ConfigInput in) throws RestApiException
config
in interface ProjectApi
RestApiException
public ProjectApi.ListRefsRequest<BranchInfo> branches()
branches
in interface ProjectApi
public ProjectApi.ListRefsRequest<TagInfo> tags()
tags
in interface ProjectApi
public java.util.List<ProjectInfo> children() throws RestApiException
children
in interface ProjectApi
RestApiException
public java.util.List<ProjectInfo> children(boolean recursive) throws RestApiException
children
in interface ProjectApi
RestApiException
public ChildProjectApi child(java.lang.String name) throws RestApiException
child
in interface ProjectApi
RestApiException
public BranchApi branch(java.lang.String ref) throws ResourceNotFoundException
ProjectApi
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.
branch
in interface ProjectApi
ref
- branch name, with or without "refs/heads/" prefix.ResourceNotFoundException
public TagApi tag(java.lang.String ref) throws ResourceNotFoundException
ProjectApi
tag
in interface ProjectApi
ref
- tag name, with or without "refs/tags/" prefix.ResourceNotFoundException
public void deleteBranches(DeleteBranchesInput in) throws RestApiException
deleteBranches
in interface ProjectApi
RestApiException
public void deleteTags(DeleteTagsInput in) throws RestApiException
deleteTags
in interface ProjectApi
RestApiException