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.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 "supportsTeamDrives" Bool :> (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 "supportsTeamDrives" Bool :> (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 # 
Instance details

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

Data FilesUpdate Source # 
Instance details

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

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

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

Generic FilesUpdate Source # 
Instance details

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

Associated Types

type Rep FilesUpdate :: Type -> Type #

GoogleRequest FilesUpdate Source # 
Instance details

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

Associated Types

type Rs FilesUpdate :: Type #

type Scopes FilesUpdate :: [Symbol] #

GoogleRequest (MediaUpload FilesUpdate) Source # 
Instance details

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

Associated Types

type Rs (MediaUpload FilesUpdate) :: Type #

type Scopes (MediaUpload FilesUpdate) :: [Symbol] #

type Rep FilesUpdate Source # 
Instance details

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

type Rep FilesUpdate = D1 (MetaData "FilesUpdate" "Network.Google.Resource.Drive.Files.Update" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "FilesUpdate'" PrefixI True) (((S1 (MetaSel (Just "_fuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 File) :*: S1 (MetaSel (Just "_fuRemoveParents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_fuUseContentAsIndexableText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_fuOCRLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_fuKeepRevisionForever") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_fuFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_fuAddParents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fuSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))
type Scopes FilesUpdate Source # 
Instance details

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

type Scopes FilesUpdate = "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.scripts" ': ([] :: [Symbol])))))
type Rs FilesUpdate Source # 
Instance details

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

type Scopes (MediaUpload FilesUpdate) Source # 
Instance details

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

type Rs (MediaUpload FilesUpdate) Source # 
Instance details

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

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.

fuSupportsTeamDrives :: Lens' FilesUpdate Bool Source #

Whether the requesting application supports Team Drives.