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 for a user.
See: Drive API Reference for drive.changes.watch
.
Synopsis
- type ChangesWatchResource = "drive" :> ("v3" :> ("changes" :> ("watch" :> (QueryParam "pageToken" Text :> (QueryParam "includeTeamDriveItems" Bool :> (QueryParam "includeCorpusRemovals" Bool :> (QueryParam "teamDriveId" Text :> (QueryParam "restrictToMyDrive" Bool :> (QueryParam "spaces" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "includeRemoved" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel))))))))))))))
- changesWatch :: Channel -> Text -> ChangesWatch
- data ChangesWatch
- cwIncludeTeamDriveItems :: Lens' ChangesWatch Bool
- cwPayload :: Lens' ChangesWatch Channel
- cwIncludeCorpusRemovals :: Lens' ChangesWatch Bool
- cwTeamDriveId :: Lens' ChangesWatch (Maybe Text)
- cwRestrictToMyDrive :: Lens' ChangesWatch Bool
- cwSpaces :: Lens' ChangesWatch Text
- cwPageToken :: Lens' ChangesWatch Text
- cwPageSize :: Lens' ChangesWatch Int32
- cwIncludeRemoved :: Lens' ChangesWatch Bool
- cwSupportsTeamDrives :: Lens' ChangesWatch Bool
REST Resource
type ChangesWatchResource = "drive" :> ("v3" :> ("changes" :> ("watch" :> (QueryParam "pageToken" Text :> (QueryParam "includeTeamDriveItems" Bool :> (QueryParam "includeCorpusRemovals" Bool :> (QueryParam "teamDriveId" Text :> (QueryParam "restrictToMyDrive" Bool :> (QueryParam "spaces" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "includeRemoved" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel)))))))))))))) Source #
A resource alias for drive.changes.watch
method which the
ChangesWatch
request conforms to.
Creating a Request
Creates a value of ChangesWatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ChangesWatch Source #
Subscribes to changes for a user.
See: changesWatch
smart constructor.
Instances
Request Lenses
cwIncludeTeamDriveItems :: Lens' ChangesWatch Bool Source #
Whether Team Drive files or changes should be included in results.
cwIncludeCorpusRemovals :: Lens' ChangesWatch Bool Source #
Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
cwTeamDriveId :: Lens' ChangesWatch (Maybe Text) Source #
The Team Drive from which changes will be returned. If specified the change IDs will be reflective of the Team Drive; use the combined Team Drive ID and change ID as an identifier.
cwRestrictToMyDrive :: Lens' ChangesWatch Bool Source #
Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.
cwSpaces :: Lens' ChangesWatch Text Source #
A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
cwPageToken :: Lens' ChangesWatch Text Source #
The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.
cwPageSize :: Lens' ChangesWatch Int32 Source #
The maximum number of changes to return per page.
cwIncludeRemoved :: Lens' ChangesWatch Bool Source #
Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
cwSupportsTeamDrives :: Lens' ChangesWatch Bool Source #
Whether the requesting application supports Team Drives.