gogol-plus-domains-0.1.0: Google + Domains 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.PlusDomains.Media.Insert

Contents

Description

Add a new media item to an album. The current upload size limitations are 36MB for a photo and 1GB for a video. Uploads do not count against quota if photos are less than 2048 pixels on their longest side or videos are less than 15 minutes in length.

See: Google+ Domains API Reference for plusDomains.media.insert.

Synopsis

REST Resource

type MediaInsertResource = ("plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("media" :> (Capture "collection" MediaInsertCollection :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Media :> Post '[JSON] Media)))))))) :<|> ("upload" :> ("plusDomains" :> ("v1" :> ("people" :> (Capture "userId" Text :> ("media" :> (Capture "collection" MediaInsertCollection :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" Multipart :> (MultipartRelated '[JSON] Media :> Post '[JSON] Media)))))))))) Source #

A resource alias for plusDomains.media.insert method which the MediaInsert request conforms to.

Creating a Request

mediaInsert Source #

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

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

data MediaInsert Source #

Add a new media item to an album. The current upload size limitations are 36MB for a photo and 1GB for a video. Uploads do not count against quota if photos are less than 2048 pixels on their longest side or videos are less than 15 minutes in length.

See: mediaInsert smart constructor.

Instances

Eq MediaInsert Source # 
Data MediaInsert Source # 

Methods

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

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

toConstr :: MediaInsert -> Constr #

dataTypeOf :: MediaInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MediaInsert Source # 
Generic MediaInsert Source # 

Associated Types

type Rep MediaInsert :: * -> * #

GoogleRequest MediaInsert Source # 

Associated Types

type Rs MediaInsert :: * #

type Scopes MediaInsert :: [Symbol] #

GoogleRequest (MediaUpload MediaInsert) Source # 
type Rep MediaInsert Source # 
type Rep MediaInsert = D1 (MetaData "MediaInsert" "Network.Google.Resource.PlusDomains.Media.Insert" "gogol-plus-domains-0.1.0-1PhYmJBRtMs7RStxSTCOS5" False) (C1 (MetaCons "MediaInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_miCollection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MediaInsertCollection)) ((:*:) (S1 (MetaSel (Just Symbol "_miPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Media)) (S1 (MetaSel (Just Symbol "_miUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes MediaInsert Source # 
type Scopes MediaInsert = (:) Symbol "https://www.googleapis.com/auth/plus.login" ((:) Symbol "https://www.googleapis.com/auth/plus.me" ((:) Symbol "https://www.googleapis.com/auth/plus.media.upload" ([] Symbol)))
type Rs MediaInsert Source # 
type Scopes (MediaUpload MediaInsert) Source # 
type Rs (MediaUpload MediaInsert) Source # 

Request Lenses

miPayload :: Lens' MediaInsert Media Source #

Multipart request metadata.

miUserId :: Lens' MediaInsert Text Source #

The ID of the user to create the activity on behalf of.