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

Contents

Description

Gets a revision's metadata or content by ID.

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

Synopsis

REST Resource

type RevisionsGetResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "alt" AltJSON :> Get '[JSON] Revision)))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("revisions" :> (Capture "revisionId" Text :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream)))))))) Source #

A resource alias for drive.revisions.get method which the RevisionsGet request conforms to.

Creating a Request

revisionsGet Source #

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

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

data RevisionsGet Source #

Gets a revision's metadata or content by ID.

See: revisionsGet smart constructor.

Instances
Eq RevisionsGet Source # 
Instance details

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

Data RevisionsGet Source # 
Instance details

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

Methods

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

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

toConstr :: RevisionsGet -> Constr #

dataTypeOf :: RevisionsGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RevisionsGet Source # 
Instance details

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

Generic RevisionsGet Source # 
Instance details

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

Associated Types

type Rep RevisionsGet :: Type -> Type #

GoogleRequest RevisionsGet Source # 
Instance details

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

Associated Types

type Rs RevisionsGet :: Type #

type Scopes RevisionsGet :: [Symbol] #

GoogleRequest (MediaDownload RevisionsGet) Source # 
Instance details

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

type Rep RevisionsGet Source # 
Instance details

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

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

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

type Scopes RevisionsGet = "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 RevisionsGet Source # 
Instance details

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

type Scopes (MediaDownload RevisionsGet) Source # 
Instance details

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

type Rs (MediaDownload RevisionsGet) Source # 
Instance details

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

Request Lenses

rggAcknowledgeAbuse :: Lens' RevisionsGet Bool Source #

Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.

rggFileId :: Lens' RevisionsGet Text Source #

The ID of the file.

rggRevisionId :: Lens' RevisionsGet Text Source #

The ID of the revision.