gogol-drive-0.1.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 # 
Data RevisionsGet Source # 

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 # 
Generic RevisionsGet Source # 

Associated Types

type Rep RevisionsGet :: * -> * #

GoogleRequest RevisionsGet Source # 

Associated Types

type Rs RevisionsGet :: * #

type Scopes RevisionsGet :: [Symbol] #

GoogleRequest (MediaDownload RevisionsGet) Source # 
type Rep RevisionsGet Source # 
type Rep RevisionsGet = D1 (MetaData "RevisionsGet" "Network.Google.Resource.Drive.Revisions.Get" "gogol-drive-0.1.0-6HBMQCLlnIn4vn8VWItYpl" False) (C1 (MetaCons "RevisionsGet'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rggAcknowledgeAbuse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) ((:*:) (S1 (MetaSel (Just Symbol "_rggFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rggRevisionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes RevisionsGet Source # 
type Scopes RevisionsGet = (:) 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.metadata.readonly" ((:) Symbol "https://www.googleapis.com/auth/drive.photos.readonly" ((:) Symbol "https://www.googleapis.com/auth/drive.readonly" ([] Symbol)))))))
type Rs RevisionsGet Source # 
type Scopes (MediaDownload RevisionsGet) Source # 
type Rs (MediaDownload RevisionsGet) Source # 

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.