Interface Projects
- All Known Implementing Classes:
Projects.NotImplemented
public interface Projects
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
A default implementation which allows source compatibility when adding new methods to the interface.static class
API for setting parameters and getting result. -
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.
-
Method Details
-
name
Look 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
ProjectApi
instances.- Parameters:
name
- project name.- Returns:
- API for accessing the project.
- Throws:
RestApiException
- if an error occurred.
-
create
Create a project using the default configuration.- Parameters:
name
- project name.- Returns:
- API for accessing the newly-created project.
- Throws:
RestApiException
- if an error occurred.
-
create
Create a project.- Parameters:
in
- project creation input; name must be set.- Returns:
- API for accessing the newly-created project.
- Throws:
RestApiException
- if an error occurred.
-
list
Projects.ListRequest list() -
query
Projects.QueryRequest query()Query projects.Example code:
query().withQuery("name:project").get()
- Returns:
- API for setting parameters and getting result.
-
query
Query projects.Shortcut API for
query().withQuery(String)
.- See Also:
-