gogol-drive-0.3.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 "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

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 # 

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 # 
Generic ChangesWatch # 

Associated Types

type Rep ChangesWatch :: * -> * #

GoogleRequest ChangesWatch # 

Associated Types

type Rs ChangesWatch :: * #

type Scopes ChangesWatch :: [Symbol] #

type Rep ChangesWatch # 
type Rep ChangesWatch = D1 (MetaData "ChangesWatch" "Network.Google.Resource.Drive.Changes.Watch" "gogol-drive-0.3.0-CdK65IBAdteKh4wQwGEtbe" False) (C1 (MetaCons "ChangesWatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cwPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Channel)) ((:*:) (S1 (MetaSel (Just Symbol "_cwRestrictToMyDrive") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_cwSpaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cwPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_cwPageSize") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 (Textual Int32))) (S1 (MetaSel (Just Symbol "_cwIncludeRemoved") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))))
type Scopes ChangesWatch # 
type Scopes ChangesWatch = (:) Symbol "https://www.googleapis.com/auth/drive" ((:) Symbol "https://www.googleapis.com/auth/drive.appdata" ((:) Symbol "https://www.googleapis.com/auth/drive.file" ((:) Symbol "https://www.googleapis.com/auth/drive.metadata" ((:) Symbol "https://www.googleapis.com/auth/drive.metadata.readonly" ((:) Symbol "https://www.googleapis.com/auth/drive.photos.readonly" ((:) Symbol "https://www.googleapis.com/auth/drive.readonly" ([] Symbol)))))))
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.