Interface Changes
-
- All Known Implementing Classes:
Changes.NotImplemented
public interface Changes
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classChanges.NotImplementedA default implementation which allows source compatibility when adding new methods to the interface.static classChanges.QueryRequest
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeApicreate(ChangeInput in)ChangeInfocreateAsInfo(ChangeInput in)ChangeApiid(int id)Look up a change by numeric ID.ChangeApiid(String id)Look up a change by string ID.ChangeApiid(String project, int id)Look up a change by project and numeric ID.ChangeApiid(String project, String branch, String id)Look up a change by project, branch, and change ID.Changes.QueryRequestquery()Changes.QueryRequestquery(String query)
-
-
-
Method Detail
-
id
ChangeApi id(int id) throws RestApiException
Look up a change by numeric ID.Note: This method eagerly reads the change. Methods that mutate the change do not necessarily re-read the change. 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
ChangeApiinstances.- Parameters:
id- change number.- Returns:
- API for accessing the change.
- Throws:
RestApiException- if an error occurred.
-
id
ChangeApi id(String id) throws RestApiException
Look up a change by string ID.- Parameters:
id- any identifier supported by the REST API, including change number, Change-Id, or project~branch~Change-Id triplet.- Returns:
- API for accessing the change.
- Throws:
RestApiException- if an error occurred.- See Also:
id(int)
-
id
ChangeApi id(String project, String branch, String id) throws RestApiException
Look up a change by project, branch, and change ID.- Throws:
RestApiException- See Also:
id(int)
-
id
ChangeApi id(String project, int id) throws RestApiException
Look up a change by project and numeric ID.- Parameters:
project- project name.id- change number.- Throws:
RestApiException- See Also:
id(int)
-
create
ChangeApi create(ChangeInput in) throws RestApiException
- Throws:
RestApiException
-
createAsInfo
ChangeInfo createAsInfo(ChangeInput in) throws RestApiException
- Throws:
RestApiException
-
query
Changes.QueryRequest query()
-
query
Changes.QueryRequest query(String query)
-
-