gogol-drive-0.1.1: Google Drive SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Drive.Files.Get

Contents

Description

Gets a file's metadata or content by ID.

See: Drive API Reference for drive.files.get.

Synopsis

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)))))) Source #

A resource alias for drive.files.get method which the FilesGet request conforms to.

Creating a Request

filesGet Source #

Arguments

:: Text

fgFileId

-> FilesGet 

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:

data FilesGet Source #

Gets a file's metadata or content by ID.

See: filesGet smart constructor.

Instances

Eq FilesGet Source # 
Data FilesGet Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FilesGet -> c FilesGet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FilesGet #

toConstr :: FilesGet -> Constr #

dataTypeOf :: FilesGet -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c FilesGet) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FilesGet) #

gmapT :: (forall b. Data b => b -> b) -> FilesGet -> FilesGet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FilesGet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FilesGet -> r #

gmapQ :: (forall d. Data d => d -> u) -> FilesGet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> FilesGet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FilesGet -> m FilesGet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FilesGet -> m FilesGet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FilesGet -> m FilesGet #

Show FilesGet Source # 
Generic FilesGet Source # 

Associated Types

type Rep FilesGet :: * -> * #

Methods

from :: FilesGet -> Rep FilesGet x #

to :: Rep FilesGet x -> FilesGet #

GoogleRequest FilesGet Source # 

Associated Types

type Rs FilesGet :: * #

type Scopes FilesGet :: [Symbol] #

GoogleRequest (MediaDownload FilesGet) Source # 
type Rep FilesGet Source # 
type Rep FilesGet = D1 (MetaData "FilesGet" "Network.Google.Resource.Drive.Files.Get" "gogol-drive-0.1.1-KMYx5cFWii3H8KG5LhzRRM" False) (C1 (MetaCons "FilesGet'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_fgAcknowledgeAbuse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_fgFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes FilesGet Source # 
type Scopes FilesGet = (:) Symbol "https://www.googleapis.com/auth/drive" ((:) Symbol "https://www.googleapis.com/auth/drive.appdata" ((:) Symbol "https://www.googleapis.com/auth/drive.file" ((:) Symbol "https://www.googleapis.com/auth/drive.metadata" ((:) Symbol "https://www.googleapis.com/auth/drive.metadata.readonly" ((:) Symbol "https://www.googleapis.com/auth/drive.photos.readonly" ((:) Symbol "https://www.googleapis.com/auth/drive.readonly" ([] Symbol)))))))
type Rs FilesGet Source # 
type Scopes (MediaDownload FilesGet) Source # 
type Rs (MediaDownload FilesGet) Source # 

Request Lenses

fgAcknowledgeAbuse :: Lens' FilesGet Bool Source #

Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.

fgFileId :: Lens' FilesGet Text Source #

The ID of the file.