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.Changes.Watch
Description
Subscribes to changes for a user.
See: Drive API Reference for drive.changes.watch
.
- type ChangesWatchResource = "drive" :> ("v3" :> ("changes" :> ("watch" :> (QueryParam "pageToken" Text :> (QueryParam "restrictToMyDrive" Bool :> (QueryParam "spaces" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "includeRemoved" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel))))))))))
- changesWatch :: Channel -> Text -> ChangesWatch
- data ChangesWatch
- cwPayload :: Lens' ChangesWatch Channel
- cwRestrictToMyDrive :: Lens' ChangesWatch Bool
- cwSpaces :: Lens' ChangesWatch Text
- cwPageToken :: Lens' ChangesWatch Text
- cwPageSize :: Lens' ChangesWatch Int32
- cwIncludeRemoved :: Lens' ChangesWatch Bool
REST Resource
type ChangesWatchResource = "drive" :> ("v3" :> ("changes" :> ("watch" :> (QueryParam "pageToken" Text :> (QueryParam "restrictToMyDrive" Bool :> (QueryParam "spaces" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "includeRemoved" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Channel :> Post '[JSON] Channel)))))))))) #
A resource alias for drive.changes.watch
method which the
ChangesWatch
request conforms to.
Creating a Request
Arguments
:: Channel | |
-> Text | |
-> ChangesWatch |
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 #
Subscribes to changes for a user.
See: changesWatch
smart constructor.
Instances
Eq ChangesWatch # | |
Data ChangesWatch # | |
Show ChangesWatch # | |
Generic ChangesWatch # | |
GoogleRequest ChangesWatch # | |
type Rep ChangesWatch # | |
type Scopes ChangesWatch # | |
type Rs ChangesWatch # | |
Request Lenses
cwPayload :: Lens' ChangesWatch Channel #
Multipart request metadata.
cwRestrictToMyDrive :: Lens' ChangesWatch Bool #
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 #
A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.
cwPageToken :: Lens' ChangesWatch Text #
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 #
The maximum number of changes to return per page.
cwIncludeRemoved :: Lens' ChangesWatch Bool #
Whether to include changes indicating that items have left the view of the changes list, for example by deletion or lost access.