gogol-drive-0.4.0: Google Drive SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Drive.Changes.Watch

Contents

Description

Subscribes to changes for a user.

See: Drive API Reference for drive.changes.watch.

Synopsis

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

changesWatch Source #

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
Eq ChangesWatch Source # 
Instance details

Defined in Network.Google.Resource.Drive.Changes.Watch

Data ChangesWatch Source # 
Instance details

Defined in Network.Google.Resource.Drive.Changes.Watch

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ChangesWatch -> c ChangesWatch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ChangesWatch #

toConstr :: ChangesWatch -> Constr #

dataTypeOf :: ChangesWatch -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ChangesWatch) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ChangesWatch) #

gmapT :: (forall b. Data b => b -> b) -> ChangesWatch -> ChangesWatch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ChangesWatch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ChangesWatch -> r #

gmapQ :: (forall d. Data d => d -> u) -> ChangesWatch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ChangesWatch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ChangesWatch -> m ChangesWatch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ChangesWatch -> m ChangesWatch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ChangesWatch -> m ChangesWatch #

Show ChangesWatch Source # 
Instance details

Defined in Network.Google.Resource.Drive.Changes.Watch

Generic ChangesWatch Source # 
Instance details

Defined in Network.Google.Resource.Drive.Changes.Watch

Associated Types

type Rep ChangesWatch :: Type -> Type #

GoogleRequest ChangesWatch Source # 
Instance details

Defined in Network.Google.Resource.Drive.Changes.Watch

Associated Types

type Rs ChangesWatch :: Type #

type Scopes ChangesWatch :: [Symbol] #

type Rep ChangesWatch Source # 
Instance details

Defined in Network.Google.Resource.Drive.Changes.Watch

type Rep ChangesWatch = D1 (MetaData "ChangesWatch" "Network.Google.Resource.Drive.Changes.Watch" "gogol-drive-0.4.0-C4qjNjFgJei6ubblDJk14k" False) (C1 (MetaCons "ChangesWatch'" PrefixI True) (((S1 (MetaSel (Just "_cwIncludeTeamDriveItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_cwPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Channel)) :*: (S1 (MetaSel (Just "_cwIncludeCorpusRemovals") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: (S1 (MetaSel (Just "_cwTeamDriveId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cwRestrictToMyDrive") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))) :*: ((S1 (MetaSel (Just "_cwSpaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cwPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_cwPageSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32)) :*: (S1 (MetaSel (Just "_cwIncludeRemoved") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_cwSupportsTeamDrives") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))))
type Scopes ChangesWatch Source # 
Instance details

Defined in Network.Google.Resource.Drive.Changes.Watch

type Scopes ChangesWatch = "https://www.googleapis.com/auth/drive" ': ("https://www.googleapis.com/auth/drive.appdata" ': ("https://www.googleapis.com/auth/drive.file" ': ("https://www.googleapis.com/auth/drive.metadata" ': ("https://www.googleapis.com/auth/drive.metadata.readonly" ': ("https://www.googleapis.com/auth/drive.photos.readonly" ': ("https://www.googleapis.com/auth/drive.readonly" ': ([] :: [Symbol])))))))
type Rs ChangesWatch Source # 
Instance details

Defined in Network.Google.Resource.Drive.Changes.Watch

Request Lenses

cwIncludeTeamDriveItems :: Lens' ChangesWatch Bool Source #

Whether Team Drive files or changes should be included in results.

cwPayload :: Lens' ChangesWatch Channel Source #

Multipart request metadata.

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.