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

Contents

Description

Updates a file's metadata and/or content with patch semantics.

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

Synopsis

REST Resource

type FilesUpdateResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "removeParents" Text :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "addParents" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] File :> Patch '[JSON] File))))))))))) :<|> ("upload" :> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "removeParents" Text :> (QueryParam "useContentAsIndexableText" Bool :> (QueryParam "ocrLanguage" Text :> (QueryParam "keepRevisionForever" Bool :> (QueryParam "addParents" Text :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] File :> Patch '[JSON] File))))))))))))) Source #

A resource alias for drive.files.update method which the FilesUpdate request conforms to.

Creating a Request

filesUpdate Source #

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

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

data FilesUpdate Source #

Updates a file's metadata and/or content with patch semantics.

See: filesUpdate smart constructor.

Instances

Eq FilesUpdate Source # 
Data FilesUpdate Source # 

Methods

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

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

toConstr :: FilesUpdate -> Constr #

dataTypeOf :: FilesUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FilesUpdate Source # 
Generic FilesUpdate Source # 

Associated Types

type Rep FilesUpdate :: * -> * #

GoogleRequest FilesUpdate Source # 

Associated Types

type Rs FilesUpdate :: * #

type Scopes FilesUpdate :: [Symbol] #

GoogleRequest (MediaUpload FilesUpdate) Source # 
type Rep FilesUpdate Source # 
type Rep FilesUpdate = D1 (MetaData "FilesUpdate" "Network.Google.Resource.Drive.Files.Update" "gogol-drive-0.1.1-KMYx5cFWii3H8KG5LhzRRM" False) (C1 (MetaCons "FilesUpdate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_fuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 File)) ((:*:) (S1 (MetaSel (Just Symbol "_fuRemoveParents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_fuUseContentAsIndexableText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_fuOCRLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_fuKeepRevisionForever") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_fuFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_fuAddParents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes FilesUpdate Source # 
type Scopes FilesUpdate = (:) 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.scripts" ([] Symbol)))))
type Rs FilesUpdate Source # 
type Scopes (MediaUpload FilesUpdate) Source # 
type Rs (MediaUpload FilesUpdate) Source # 

Request Lenses

fuPayload :: Lens' FilesUpdate File Source #

Multipart request metadata.

fuRemoveParents :: Lens' FilesUpdate (Maybe Text) Source #

A comma-separated list of parent IDs to remove.

fuUseContentAsIndexableText :: Lens' FilesUpdate Bool Source #

Whether to use the uploaded content as indexable text.

fuOCRLanguage :: Lens' FilesUpdate (Maybe Text) Source #

A language hint for OCR processing during image import (ISO 639-1 code).

fuKeepRevisionForever :: Lens' FilesUpdate Bool Source #

Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Drive.

fuFileId :: Lens' FilesUpdate Text Source #

The ID of the file.

fuAddParents :: Lens' FilesUpdate (Maybe Text) Source #

A comma-separated list of parent IDs to add.