Class ChangeEdits.DeleteFile
java.lang.Object
com.google.gerrit.server.restapi.change.ChangeEdits.DeleteFile
- All Implemented Interfaces:
RestCollectionDeleteMissingView<ChangeResource,
,ChangeEditResource, Input> RestCollectionView<ChangeResource,
,ChangeEditResource, Input> RestView<ChangeEditResource>
- Enclosing class:
- ChangeEdits
public static class ChangeEdits.DeleteFile
extends Object
implements RestCollectionDeleteMissingView<ChangeResource,ChangeEditResource,Input>
-
Method Summary
-
Method Details
-
apply
public Response<Object> apply(ChangeResource rsrc, IdString id, Input input) throws IOException, AuthException, BadRequestException, ResourceConflictException, PermissionBackendException Description copied from interface:RestCollectionDeleteMissingView
Process the view operation by deleting the resource.The returned response defines the status code that is returned to the client. For RestCollectionDeleteMissingViews this is usually
204 No Content
because a resource is deleted, but other 2XX or 3XX status codes are also possible (e.g.200 OK
,302 Found
for a redirect).The returned response usually does not have any value (status code
204 No Content
). If a value in the returned response is set it is automatically converted to JSON unless it is aBinaryResult
.Throwing a subclass of
RestApiException
results in a 4XX response to the client. For any other exception the client will get a500 Internal Server Error
response.- Specified by:
apply
in interfaceRestCollectionDeleteMissingView<ChangeResource,
ChangeEditResource, Input> - Parameters:
rsrc
- parent resource of the resource that should be deletedid
- the ID of the child resource that should be deletedinput
- input after parsing from request- Returns:
- response to return to the client
- Throws:
IOException
AuthException
BadRequestException
ResourceConflictException
PermissionBackendException
-