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.Export

Contents

Description

Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.

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

Synopsis

REST Resource

type FilesExportResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("export" :> (QueryParam "mimeType" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ()))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("export" :> (QueryParam "mimeType" Text :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream))))))) Source #

A resource alias for drive.files.export method which the FilesExport request conforms to.

Creating a Request

filesExport Source #

Creates a value of FilesExport with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data FilesExport Source #

Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.

See: filesExport smart constructor.

Instances
Eq FilesExport Source # 
Instance details

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

Data FilesExport Source # 
Instance details

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

Methods

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

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

toConstr :: FilesExport -> Constr #

dataTypeOf :: FilesExport -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FilesExport Source # 
Instance details

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

Generic FilesExport Source # 
Instance details

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

Associated Types

type Rep FilesExport :: Type -> Type #

GoogleRequest FilesExport Source # 
Instance details

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

Associated Types

type Rs FilesExport :: Type #

type Scopes FilesExport :: [Symbol] #

GoogleRequest (MediaDownload FilesExport) Source # 
Instance details

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

Associated Types

type Rs (MediaDownload FilesExport) :: Type #

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

type Rep FilesExport Source # 
Instance details

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

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

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

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

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

type Rs FilesExport = ()
type Scopes (MediaDownload FilesExport) Source # 
Instance details

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

type Rs (MediaDownload FilesExport) Source # 
Instance details

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

Request Lenses

feMimeType :: Lens' FilesExport Text Source #

The MIME type of the format requested for this export.

feFileId :: Lens' FilesExport Text Source #

The ID of the file.