gogol-drive-0.4.0: 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 "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] File))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" 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 # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

Data FilesGet Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

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 # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

Generic FilesGet Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

Associated Types

type Rep FilesGet :: Type -> Type #

Methods

from :: FilesGet -> Rep FilesGet x #

to :: Rep FilesGet x -> FilesGet #

GoogleRequest FilesGet Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

Associated Types

type Rs FilesGet :: Type #

type Scopes FilesGet :: [Symbol] #

GoogleRequest (MediaDownload FilesGet) Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

Associated Types

type Rs (MediaDownload FilesGet) :: Type #

type Scopes (MediaDownload FilesGet) :: [Symbol] #

type Rep FilesGet Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

type Rep FilesGet = D1 (MetaData "FilesGet" "Network.Google.Resource.Drive.Files.Get" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "FilesGet'" PrefixI True) (S1 (MetaSel (Just "_fgAcknowledgeAbuse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "_fgFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_fgSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))
type Scopes FilesGet Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

type Scopes FilesGet = "https://www.googleapis.com/auth/drive" ': ("https://www.googleapis.com/auth/drive.appdata" ': ("https://www.googleapis.com/auth/drive.file" ': ("https://www.googleapis.com/auth/drive.metadata" ': ("https://www.googleapis.com/auth/drive.metadata.readonly" ': ("https://www.googleapis.com/auth/drive.photos.readonly" ': ("https://www.googleapis.com/auth/drive.readonly" ': ([] :: [Symbol])))))))
type Rs FilesGet Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

type Scopes (MediaDownload FilesGet) Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

type Rs (MediaDownload FilesGet) Source # 
Instance details

Defined in Network.Google.Resource.Drive.Files.Get

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.

fgSupportsTeamDrives :: Lens' FilesGet Bool Source #

Whether the requesting application supports Team Drives.