gogol-gmail-0.3.0: Google Gmail 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.Gmail.Users.Watch

Contents

Description

Set up or update a push notification watch on the given user mailbox.

See: Gmail API Reference for gmail.users.watch.

Synopsis

REST Resource

type UsersWatchResource = "gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("watch" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WatchRequest :> Post '[JSON] WatchResponse)))))) Source #

A resource alias for gmail.users.watch method which the UsersWatch request conforms to.

Creating a Request

usersWatch Source #

Creates a value of UsersWatch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersWatch Source #

Set up or update a push notification watch on the given user mailbox.

See: usersWatch smart constructor.

Instances

Eq UsersWatch Source # 
Data UsersWatch Source # 

Methods

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

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

toConstr :: UsersWatch -> Constr #

dataTypeOf :: UsersWatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersWatch Source # 
Generic UsersWatch Source # 

Associated Types

type Rep UsersWatch :: * -> * #

GoogleRequest UsersWatch Source # 

Associated Types

type Rs UsersWatch :: * #

type Scopes UsersWatch :: [Symbol] #

type Rep UsersWatch Source # 
type Rep UsersWatch = D1 (MetaData "UsersWatch" "Network.Google.Resource.Gmail.Users.Watch" "gogol-gmail-0.3.0-LsjK5jY5aBO3wn73Gztk4i" False) (C1 (MetaCons "UsersWatch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_uwPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 WatchRequest)) (S1 (MetaSel (Just Symbol "_uwUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersWatch Source # 
type Scopes UsersWatch = (:) Symbol "https://mail.google.com/" ((:) Symbol "https://www.googleapis.com/auth/gmail.metadata" ((:) Symbol "https://www.googleapis.com/auth/gmail.modify" ((:) Symbol "https://www.googleapis.com/auth/gmail.readonly" ([] Symbol))))
type Rs UsersWatch Source # 

Request Lenses

uwPayload :: Lens' UsersWatch WatchRequest Source #

Multipart request metadata.

uwUserId :: Lens' UsersWatch Text Source #

The user's email address. The special value me can be used to indicate the authenticated user.