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
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
ChangeInfo accessChange(ProjectAccessInput p) throws RestApiException
RestApiException
AccessCheckInfo checkAccess(AccessCheckInput in) throws RestApiException
RestApiException
CheckProjectResultInfo check(CheckProjectInput in) 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
List<ProjectInfo> children(int limit) 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.CommitApi commit(String commit) throws RestApiException
ObjectId
string.commit
- the ObjectId
string.RestApiException
DashboardApi dashboard(String name) throws RestApiException
name
- the name.RestApiException
DashboardApi defaultDashboard() throws RestApiException
RestApiException
void defaultDashboard(String name) throws RestApiException
name
- the dashboard to set as default.RestApiException
void removeDefaultDashboard() throws RestApiException
RestApiException
ProjectApi.ListDashboardsRequest dashboards() throws RestApiException
RestApiException
String head() throws RestApiException
HEAD
points.RestApiException
void head(String head) throws RestApiException
HEAD
.head
- the HEADRestApiException
String parent() throws RestApiException
RestApiException
void parent(String parent) throws RestApiException
parent
- the parentRestApiException
void index(boolean indexChildren) throws RestApiException
indexChildren
is specified.indexChildren
- decides if children should be indexed recursivelyRestApiException