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 |
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 "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))))))))
- filesWatch :: Channel -> Text -> FilesWatch
- data FilesWatch
- fwPayload :: Lens' FilesWatch Channel
- fwAcknowledgeAbuse :: Lens' FilesWatch Bool
- fwFileId :: Lens' FilesWatch Text
- fwSupportsTeamDrives :: Lens' FilesWatch Bool
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
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
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 #
Whether the requesting application supports Team Drives.