| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Drive.Revisions.Delete
Description
Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.
See: Drive API Reference for drive.revisions.delete.
Synopsis
- type RevisionsDeleteResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))
- revisionsDelete :: Text -> Text -> RevisionsDelete
- data RevisionsDelete
- rFileId :: Lens' RevisionsDelete Text
- rRevisionId :: Lens' RevisionsDelete Text
REST Resource
type RevisionsDeleteResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))) Source #
A resource alias for drive.revisions.delete method which the
RevisionsDelete request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> RevisionsDelete |
Creates a value of RevisionsDelete with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RevisionsDelete Source #
Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.
See: revisionsDelete smart constructor.
Instances
Request Lenses
rRevisionId :: Lens' RevisionsDelete Text Source #
The ID of the revision.