Interface RevisionApi
-
- All Known Implementing Classes:
RevisionApi.NotImplemented
public interface RevisionApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RevisionApi.MergeListRequest
static class
RevisionApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the interface.
-
Method Summary
-
-
-
Method Detail
-
description
String description() throws RestApiException
- Throws:
RestApiException
-
description
void description(String description) throws RestApiException
- Throws:
RestApiException
-
review
ReviewResult review(ReviewInput in) throws RestApiException
- Throws:
RestApiException
-
submit
default void submit() throws RestApiException
- Throws:
RestApiException
-
submit
void submit(SubmitInput in) throws RestApiException
- Throws:
RestApiException
-
submitPreview
default BinaryResult submitPreview() throws RestApiException
- Throws:
RestApiException
-
submitPreview
BinaryResult submitPreview(String format) throws RestApiException
- Throws:
RestApiException
-
cherryPick
ChangeApi cherryPick(CherryPickInput in) throws RestApiException
- Throws:
RestApiException
-
cherryPickAsInfo
CherryPickChangeInfo cherryPickAsInfo(CherryPickInput in) throws RestApiException
- Throws:
RestApiException
-
rebase
default ChangeApi rebase() throws RestApiException
- Throws:
RestApiException
-
rebase
ChangeApi rebase(RebaseInput in) throws RestApiException
- Throws:
RestApiException
-
canRebase
boolean canRebase() throws RestApiException
- Throws:
RestApiException
-
reviewer
RevisionReviewerApi reviewer(String id) throws RestApiException
- Throws:
RestApiException
-
setReviewed
void setReviewed(String path, boolean reviewed) throws RestApiException
- Throws:
RestApiException
-
reviewed
Set<String> reviewed() throws RestApiException
- Throws:
RestApiException
-
files
default Map<String,FileInfo> files() throws RestApiException
- Throws:
RestApiException
-
files
Map<String,FileInfo> files(String base) throws RestApiException
- Throws:
RestApiException
-
files
Map<String,FileInfo> files(int parentNum) throws RestApiException
- Throws:
RestApiException
-
queryFiles
List<String> queryFiles(String query) throws RestApiException
- Throws:
RestApiException
-
commit
CommitInfo commit(boolean addLinks) throws RestApiException
- Throws:
RestApiException
-
mergeable
MergeableInfo mergeable() throws RestApiException
- Throws:
RestApiException
-
mergeableOtherBranches
MergeableInfo mergeableOtherBranches() throws RestApiException
- Throws:
RestApiException
-
comments
Map<String,List<CommentInfo>> comments() throws RestApiException
- Throws:
RestApiException
-
robotComments
Map<String,List<RobotCommentInfo>> robotComments() throws RestApiException
- Throws:
RestApiException
-
drafts
Map<String,List<CommentInfo>> drafts() throws RestApiException
- Throws:
RestApiException
-
commentsAsList
List<CommentInfo> commentsAsList() throws RestApiException
- Throws:
RestApiException
-
draftsAsList
List<CommentInfo> draftsAsList() throws RestApiException
- Throws:
RestApiException
-
robotCommentsAsList
List<RobotCommentInfo> robotCommentsAsList() throws RestApiException
- Throws:
RestApiException
-
applyFix
EditInfo applyFix(String fixId) throws RestApiException
Applies the indicated fix by creating a new change edit or integrating the fix with the existing change edit. If no change edit exists before this call, the fix must refer to the current patch set. If a change edit exists, the fix must refer to the patch set on which the change edit is based.- Parameters:
fixId
- the ID of the fix which should be applied- Throws:
RestApiException
- if the fix couldn't be applied
-
createDraft
DraftApi createDraft(DraftInput in) throws RestApiException
- Throws:
RestApiException
-
draft
DraftApi draft(String id) throws RestApiException
- Throws:
RestApiException
-
comment
CommentApi comment(String id) throws RestApiException
- Throws:
RestApiException
-
robotComment
RobotCommentApi robotComment(String id) throws RestApiException
- Throws:
RestApiException
-
etag
String etag() throws RestApiException
- Throws:
RestApiException
-
patch
BinaryResult patch() throws RestApiException
Returns patch of revision.- Throws:
RestApiException
-
patch
BinaryResult patch(String path) throws RestApiException
- Throws:
RestApiException
-
actions
Map<String,ActionInfo> actions() throws RestApiException
- Throws:
RestApiException
-
submitType
SubmitType submitType() throws RestApiException
- Throws:
RestApiException
-
testSubmitType
SubmitType testSubmitType(TestSubmitRuleInput in) throws RestApiException
- Throws:
RestApiException
-
testSubmitRule
List<TestSubmitRuleInfo> testSubmitRule(TestSubmitRuleInput in) throws RestApiException
- Throws:
RestApiException
-
getMergeList
RevisionApi.MergeListRequest getMergeList() throws RestApiException
- Throws:
RestApiException
-
related
RelatedChangesInfo related() throws RestApiException
- Throws:
RestApiException
-
votes
com.google.common.collect.ListMultimap<String,ApprovalInfo> votes() throws RestApiException
Returns votes on the revision.- Throws:
RestApiException
-
-