public class ProjectApiRestClient extends ProjectApi.NotImplemented implements ProjectApi
ProjectApi.ListDashboardsRequest, ProjectApi.ListRefsRequest<T extends RefInfo>, ProjectApi.NotImplemented| Constructor and Description |
|---|
ProjectApiRestClient(GerritRestClient gerritRestClient,
ProjectsParser projectsParser,
BranchInfoParser branchInfoParser,
TagInfoParser tagInfoParser,
String name) |
| 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() |
ProjectApi |
create() |
ProjectApi |
create(ProjectInput in) |
ProjectInfo |
get() |
protected String |
projectsUrl() |
TagApi |
tag(String ref)
Look up a tag by refname.
|
ProjectApi.ListRefsRequest<TagInfo> |
tags() |
accessChange, checkAccess, child, children, children, commit, config, config, dashboard, dashboards, defaultDashboard, defaultDashboard, deleteBranches, deleteTags, description, description, head, head, parent, parent, removeDefaultDashboardclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccessChange, checkAccess, child, children, children, commit, config, config, dashboard, dashboards, defaultDashboard, defaultDashboard, deleteBranches, deleteTags, description, description, head, head, parent, parent, removeDefaultDashboardpublic ProjectApiRestClient(GerritRestClient gerritRestClient, ProjectsParser projectsParser, BranchInfoParser branchInfoParser, TagInfoParser tagInfoParser, String name)
public ProjectInfo get()
get in interface ProjectApiget in class ProjectApi.NotImplementedpublic ProjectApi create() throws RestApiException
create in interface ProjectApicreate in class ProjectApi.NotImplementedRestApiExceptionpublic ProjectApi create(ProjectInput in) throws RestApiException
create in interface ProjectApicreate in class ProjectApi.NotImplementedRestApiExceptionpublic ProjectApi.ListRefsRequest<BranchInfo> branches()
branches in interface ProjectApibranches in class ProjectApi.NotImplementedpublic BranchApi branch(String ref) throws RestApiException
ProjectApiNote: 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 ProjectApibranch in class ProjectApi.NotImplementedref - branch name, with or without "refs/heads/" prefix.RestApiException - if a problem occurred reading the project.public ProjectApi.ListRefsRequest<TagInfo> tags()
tags in interface ProjectApitags in class ProjectApi.NotImplementedpublic TagApi tag(String ref) throws RestApiException
ProjectApitag in interface ProjectApitag in class ProjectApi.NotImplementedref - tag name, with or without "refs/tags/" prefix.RestApiException - if a problem occurred reading the project.public ProjectAccessInfo access() throws RestApiException
access in interface ProjectApiaccess in class ProjectApi.NotImplementedRestApiExceptionpublic ProjectAccessInfo access(ProjectAccessInput p) throws RestApiException
access in interface ProjectApiaccess in class ProjectApi.NotImplementedRestApiExceptionprotected String projectsUrl()
Copyright © 2018. All rights reserved.