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 "includeItemsFromAllDrives" Bool :> (QueryParam "supportsAllDrives" Bool :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "includeRemoved" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "driveId" Text :> (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
- cwIncludeItemsFromAllDrives :: Lens' ChangesWatch Bool
- cwSupportsAllDrives :: Lens' ChangesWatch Bool
- cwPageToken :: Lens' ChangesWatch Text
- cwPageSize :: Lens' ChangesWatch Int32
- cwIncludeRemoved :: Lens' ChangesWatch Bool
- cwSupportsTeamDrives :: Lens' ChangesWatch Bool
- cwDriveId :: Lens' ChangesWatch (Maybe Text)
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 "includeItemsFromAllDrives" Bool :> (QueryParam "supportsAllDrives" Bool :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "includeRemoved" Bool :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "driveId" Text :> (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 #
Deprecated use includeItemsFromAllDrives instead.
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 #
Deprecated use driveId instead.
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'.
cwIncludeItemsFromAllDrives :: Lens' ChangesWatch Bool Source #
Whether both My Drive and shared drive items should be included in results.
cwSupportsAllDrives :: Lens' ChangesWatch Bool Source #
Whether the requesting application supports both My Drives and shared drives.
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 #
Deprecated use supportsAllDrives instead.