Class Projects.NotImplemented
java.lang.Object
com.google.gerrit.extensions.api.projects.Projects.NotImplemented
- All Implemented Interfaces:
Projects
- Enclosing interface:
- Projects
A default implementation which allows source compatibility when adding new methods to the
interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.projects.Projects
Projects.ListRequest, Projects.NotImplemented, Projects.QueryRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ProjectInput in) Create a project.Create a project using the default configuration.list()Look up a project by name.query()Query projects.Query projects.
-
Constructor Details
-
NotImplemented
public NotImplemented()
-
-
Method Details
-
name
Description copied from interface:ProjectsLook up a project by name.Note: 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
ProjectApiinstances.- Specified by:
namein interfaceProjects- Parameters:
name- project name.- Returns:
- API for accessing the project.
- Throws:
RestApiException- if an error occurred.
-
create
Description copied from interface:ProjectsCreate a project.- Specified by:
createin interfaceProjects- Parameters:
in- project creation input; name must be set.- Returns:
- API for accessing the newly-created project.
- Throws:
RestApiException- if an error occurred.
-
create
Description copied from interface:ProjectsCreate a project using the default configuration.- Specified by:
createin interfaceProjects- Parameters:
name- project name.- Returns:
- API for accessing the newly-created project.
- Throws:
RestApiException- if an error occurred.
-
list
-
query
Description copied from interface:ProjectsQuery projects.Example code:
query().withQuery("name:project").get() -
query
Description copied from interface:ProjectsQuery projects.Shortcut API for
query().withQuery(String).
-