public class ProjectsRestClient extends Projects.NotImplemented implements Projects
Projects.ListRequest, Projects.NotImplemented, Projects.QueryRequest| Constructor and Description |
|---|
ProjectsRestClient(GerritRestClient gerritRestClient,
ProjectsParser projectsParser,
BranchInfoParser branchInfoParser,
TagInfoParser tagInfoParser) |
| Modifier and Type | Method and Description |
|---|---|
ProjectApi |
create(ProjectInput in)
Create a project.
|
ProjectApi |
create(String name)
Create a project using the default configuration.
|
Projects.ListRequest |
list() |
ProjectApi |
name(String name)
Look up a project by name.
|
query, querypublic ProjectsRestClient(GerritRestClient gerritRestClient, ProjectsParser projectsParser, BranchInfoParser branchInfoParser, TagInfoParser tagInfoParser)
public Projects.ListRequest list()
list in interface Projectslist in class Projects.NotImplementedpublic ProjectApi name(String name) throws RestApiException
ProjectsNote: This method eagerly reads the project. Methods that mutate the
project do not necessarily re-read the project. 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 ProjectApi instances.
name in interface Projectsname in class Projects.NotImplementedname - project name.RestApiException - if an error occurred.public ProjectApi create(String name) throws RestApiException
Projectscreate in interface Projectscreate in class Projects.NotImplementedname - project name.RestApiException - if an error occurred.public ProjectApi create(ProjectInput in) throws RestApiException
Projectscreate in interface Projectscreate in class Projects.NotImplementedin - project creation input; name must be set.RestApiException - if an error occurred.Copyright © 2018. All rights reserved.