gogol-mirror-0.3.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.Attachments.Insert

Contents

Description

Adds a new attachment to a timeline item.

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

Synopsis

REST Resource

type TimelineAttachmentsInsertResource = ("mirror" :> ("v1" :> ("timeline" :> (Capture "itemId" Text :> ("attachments" :> (QueryParam "alt" AltJSON :> Post '[JSON] Attachment)))))) :<|> ("upload" :> ("mirror" :> ("v1" :> ("timeline" :> (Capture "itemId" Text :> ("attachments" :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (AltMedia :> Post '[JSON] Attachment))))))))) Source #

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

Creating a Request

timelineAttachmentsInsert Source #

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

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

data TimelineAttachmentsInsert Source #

Adds a new attachment to a timeline item.

See: timelineAttachmentsInsert smart constructor.

Instances

Eq TimelineAttachmentsInsert Source # 
Data TimelineAttachmentsInsert Source # 

Methods

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

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

toConstr :: TimelineAttachmentsInsert -> Constr #

dataTypeOf :: TimelineAttachmentsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TimelineAttachmentsInsert Source # 
Generic TimelineAttachmentsInsert Source # 
GoogleRequest TimelineAttachmentsInsert Source # 
GoogleRequest (MediaUpload TimelineAttachmentsInsert) Source # 
type Rep TimelineAttachmentsInsert Source # 
type Rep TimelineAttachmentsInsert = D1 (MetaData "TimelineAttachmentsInsert" "Network.Google.Resource.Mirror.Timeline.Attachments.Insert" "gogol-mirror-0.3.0-FkU37exdHLuBCfOrEknoZA" True) (C1 (MetaCons "TimelineAttachmentsInsert'" PrefixI True) (S1 (MetaSel (Just Symbol "_taiItemId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Scopes TimelineAttachmentsInsert Source # 
type Scopes TimelineAttachmentsInsert = (:) Symbol "https://www.googleapis.com/auth/glass.timeline" ([] Symbol)
type Rs TimelineAttachmentsInsert Source # 
type Scopes (MediaUpload TimelineAttachmentsInsert) Source # 
type Rs (MediaUpload TimelineAttachmentsInsert) Source # 

Request Lenses

taiItemId :: Lens' TimelineAttachmentsInsert Text Source #

The ID of the timeline item the attachment belongs to.