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