gogol-plus-domains-0.4.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 # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

Data MediaInsert Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

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 # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

Generic MediaInsert Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

Associated Types

type Rep MediaInsert :: Type -> Type #

GoogleRequest MediaInsert Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

Associated Types

type Rs MediaInsert :: Type #

type Scopes MediaInsert :: [Symbol] #

GoogleRequest (MediaUpload MediaInsert) Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

Associated Types

type Rs (MediaUpload MediaInsert) :: Type #

type Scopes (MediaUpload MediaInsert) :: [Symbol] #

type Rep MediaInsert Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

type Rep MediaInsert = D1 (MetaData "MediaInsert" "Network.Google.Resource.PlusDomains.Media.Insert" "gogol-plus-domains-0.4.0-34lALQjqVKZA6ahc5WKRcy" False) (C1 (MetaCons "MediaInsert'" PrefixI True) (S1 (MetaSel (Just "_miCollection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MediaInsertCollection) :*: (S1 (MetaSel (Just "_miPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Media) :*: S1 (MetaSel (Just "_miUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes MediaInsert Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

type Scopes MediaInsert = "https://www.googleapis.com/auth/plus.login" ': ("https://www.googleapis.com/auth/plus.me" ': ("https://www.googleapis.com/auth/plus.media.upload" ': ([] :: [Symbol])))
type Rs MediaInsert Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

type Scopes (MediaUpload MediaInsert) Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

type Rs (MediaUpload MediaInsert) Source # 
Instance details

Defined in Network.Google.Resource.PlusDomains.Media.Insert

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.