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 |
Gets a revision's metadata or content by ID.
See: Drive API Reference for drive.revisions.get
.
Synopsis
- type RevisionsGetResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] Revision)))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream))))))))
- revisionsGet :: Text -> Text -> RevisionsGet
- data RevisionsGet
- rggAcknowledgeAbuse :: Lens' RevisionsGet Bool
- rggFileId :: Lens' RevisionsGet Text
- rggRevisionId :: Lens' RevisionsGet Text
REST Resource
type RevisionsGetResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] Revision)))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream)))))))) Source #
A resource alias for drive.revisions.get
method which the
RevisionsGet
request conforms to.
Creating a Request
Creates a value of RevisionsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RevisionsGet Source #
Gets a revision's metadata or content by ID.
See: revisionsGet
smart constructor.
Instances
Request Lenses
rggAcknowledgeAbuse :: Lens' RevisionsGet Bool Source #
Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
rggRevisionId :: Lens' RevisionsGet Text Source #
The ID of the revision.