gogol-mirror-0.2.0: Google Mirror 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.Mirror.Timeline.Insert

Contents

Description

Inserts a new item into the timeline.

See: Google Mirror API Reference for mirror.timeline.insert.

Synopsis

REST Resource

type TimelineInsertResource = ("mirror" :> ("v1" :> ("timeline" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TimelineItem :> Post '[JSON] TimelineItem))))) :<|> ("upload" :> ("mirror" :> ("v1" :> ("timeline" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] TimelineItem :> Post '[JSON] TimelineItem))))))) Source #

A resource alias for mirror.timeline.insert method which the TimelineInsert request conforms to.

Creating a Request

timelineInsert Source #

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

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

data TimelineInsert Source #

Inserts a new item into the timeline.

See: timelineInsert smart constructor.

Instances

Eq TimelineInsert Source # 
Data TimelineInsert Source # 

Methods

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

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

toConstr :: TimelineInsert -> Constr #

dataTypeOf :: TimelineInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TimelineInsert Source # 
Generic TimelineInsert Source # 

Associated Types

type Rep TimelineInsert :: * -> * #

GoogleRequest TimelineInsert Source # 
GoogleRequest (MediaUpload TimelineInsert) Source # 
type Rep TimelineInsert Source # 
type Rep TimelineInsert = D1 (MetaData "TimelineInsert" "Network.Google.Resource.Mirror.Timeline.Insert" "gogol-mirror-0.2.0-Hlv1x2HhPEMH1rKkmHF742" True) (C1 (MetaCons "TimelineInsert'" PrefixI True) (S1 (MetaSel (Just Symbol "_tiPayload") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TimelineItem)))
type Scopes TimelineInsert Source # 
type Scopes TimelineInsert = (:) Symbol "https://www.googleapis.com/auth/glass.location" ((:) Symbol "https://www.googleapis.com/auth/glass.timeline" ([] Symbol))
type Rs TimelineInsert Source # 
type Scopes (MediaUpload TimelineInsert) Source # 
type Rs (MediaUpload TimelineInsert) Source # 

Request Lenses

tiPayload :: Lens' TimelineInsert TimelineItem Source #

Multipart request metadata.