| Copyright | (c) 2015-2016 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Network.Google.Resource.Drive.Files.Watch
Description
Subscribes to changes to a file
See: Drive API Reference for drive.files.watch.
Synopsis
- type FilesWatchResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("watch" :> (QueryParam "supportsAllDrives" Bool :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel)))))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("watch" :> (QueryParam "supportsAllDrives" Bool :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltMedia :> Post '[OctetStream] Stream)))))))))
- filesWatch :: Channel -> Text -> FilesWatch
- data FilesWatch
- fwPayload :: Lens' FilesWatch Channel
- fwSupportsAllDrives :: Lens' FilesWatch Bool
- fwAcknowledgeAbuse :: Lens' FilesWatch Bool
- fwFileId :: Lens' FilesWatch Text
- fwSupportsTeamDrives :: Lens' FilesWatch Bool
REST Resource
type FilesWatchResource = ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("watch" :> (QueryParam "supportsAllDrives" Bool :> (QueryParam "acknowledgeAbuse" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel)))))))))) :<|> ("drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> ("watch" :> (QueryParam "supportsAllDrives" Bool :> (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
Arguments
| :: Channel | |
| -> Text | |
| -> FilesWatch | 
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
Request Lenses
fwSupportsAllDrives :: Lens' FilesWatch Bool Source #
Whether the requesting application supports both My Drives and shared drives.
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.
fwSupportsTeamDrives :: Lens' FilesWatch Bool Source #
Deprecated use supportsAllDrives instead.