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

Contents

Description

Updates a revision with patch semantics.

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

Synopsis

REST Resource

type RevisionsUpdateResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Revision :> Patch '[JSON] Revision))))))) Source #

A resource alias for drive.revisions.update method which the RevisionsUpdate request conforms to.

Creating a Request

revisionsUpdate Source #

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

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

data RevisionsUpdate Source #

Updates a revision with patch semantics.

See: revisionsUpdate smart constructor.

Instances
Eq RevisionsUpdate Source # 
Instance details

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

Data RevisionsUpdate Source # 
Instance details

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

Methods

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

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

toConstr :: RevisionsUpdate -> Constr #

dataTypeOf :: RevisionsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RevisionsUpdate Source # 
Instance details

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

Generic RevisionsUpdate Source # 
Instance details

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

Associated Types

type Rep RevisionsUpdate :: Type -> Type #

GoogleRequest RevisionsUpdate Source # 
Instance details

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

Associated Types

type Rs RevisionsUpdate :: Type #

type Scopes RevisionsUpdate :: [Symbol] #

type Rep RevisionsUpdate Source # 
Instance details

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

type Rep RevisionsUpdate = D1 (MetaData "RevisionsUpdate" "Network.Google.Resource.Drive.Revisions.Update" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "RevisionsUpdate'" PrefixI True) (S1 (MetaSel (Just "_revPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Revision) :*: (S1 (MetaSel (Just "_revFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_revRevisionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes RevisionsUpdate Source # 
Instance details

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

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

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

Request Lenses

revPayload :: Lens' RevisionsUpdate Revision Source #

Multipart request metadata.

revFileId :: Lens' RevisionsUpdate Text Source #

The ID of the file.

revRevisionId :: Lens' RevisionsUpdate Text Source #

The ID of the revision.