gogol-drive-0.3.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.Watch

Contents

Description

Subscribes to changes to a file

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

Synopsis

REST Resource

type FilesWatchResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("watch" :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel)))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("watch" :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "alt" AltMedia :> Post '[OctetStream] Stream))))))) Source #

A resource alias for drive.files.watch method which the FilesWatch request conforms to.

Creating a Request

filesWatch Source #

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

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

data FilesWatch Source #

Subscribes to changes to a file

See: filesWatch smart constructor.

Instances

Eq FilesWatch Source # 
Data FilesWatch Source # 

Methods

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

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

toConstr :: FilesWatch -> Constr #

dataTypeOf :: FilesWatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FilesWatch Source # 
Generic FilesWatch Source # 

Associated Types

type Rep FilesWatch :: * -> * #

GoogleRequest FilesWatch Source # 

Associated Types

type Rs FilesWatch :: * #

type Scopes FilesWatch :: [Symbol] #

GoogleRequest (MediaDownload FilesWatch) Source # 
type Rep FilesWatch Source # 
type Rep FilesWatch = D1 (MetaData "FilesWatch" "Network.Google.Resource.Drive.Files.Watch" "gogol-drive-0.3.0-HPclvxcWpgG8piXpdkWWOb" False) (C1 (MetaCons "FilesWatch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_fwPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Channel)) ((:*:) (S1 (MetaSel (Just Symbol "_fwAcknowledgeAbuse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_fwFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes FilesWatch Source # 
type Scopes FilesWatch = (:) 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 FilesWatch Source # 
type Scopes (MediaDownload FilesWatch) Source # 
type Rs (MediaDownload FilesWatch) Source # 

Request Lenses

fwPayload :: Lens' FilesWatch Channel Source #

Multipart request metadata.

fwAcknowledgeAbuse :: Lens' FilesWatch Bool Source #

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

fwFileId :: Lens' FilesWatch Text Source #

The ID of the file.