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.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 "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel))))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("watch" :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" 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 # 
Instance details

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

Data FilesWatch Source # 
Instance details

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

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

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

Generic FilesWatch Source # 
Instance details

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

Associated Types

type Rep FilesWatch :: Type -> Type #

GoogleRequest FilesWatch Source # 
Instance details

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

Associated Types

type Rs FilesWatch :: Type #

type Scopes FilesWatch :: [Symbol] #

GoogleRequest (MediaDownload FilesWatch) Source # 
Instance details

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

Associated Types

type Rs (MediaDownload FilesWatch) :: Type #

type Scopes (MediaDownload FilesWatch) :: [Symbol] #

type Rep FilesWatch Source # 
Instance details

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

type Rep FilesWatch = D1 (MetaData "FilesWatch" "Network.Google.Resource.Drive.Files.Watch" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "FilesWatch'" PrefixI True) ((S1 (MetaSel (Just "_fwPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Channel) :*: S1 (MetaSel (Just "_fwAcknowledgeAbuse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) :*: (S1 (MetaSel (Just "_fwFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_fwSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))
type Scopes FilesWatch Source # 
Instance details

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

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

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

type Scopes (MediaDownload FilesWatch) Source # 
Instance details

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

type Rs (MediaDownload FilesWatch) Source # 
Instance details

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

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.

fwSupportsTeamDrives :: Lens' FilesWatch Bool Source #

Whether the requesting application supports Team Drives.