gogol-photoslibrary-0.4.0: Google Photos Library 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.PhotosLibrary.MediaItems.BatchCreate

Contents

Description

Creates one or more media items in a user's Google Photos library. If an album id is specified, the media item(s) are also added to the album. By default the media item(s) will be added to the end of the library or album. If an album id and position are both defined, then the media items will be added to the album at the specified position. If multiple media items are given, they will be inserted at the specified position.

See: Photos Library API Reference for photoslibrary.mediaItems.batchCreate.

Synopsis

REST Resource

type MediaItemsBatchCreateResource = "v1" :> ("mediaItems:batchCreate" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchCreateMediaItemsRequest :> Post '[JSON] BatchCreateMediaItemsResponse)))))))))) Source #

A resource alias for photoslibrary.mediaItems.batchCreate method which the MediaItemsBatchCreate request conforms to.

Creating a Request

mediaItemsBatchCreate Source #

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

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

data MediaItemsBatchCreate Source #

Creates one or more media items in a user's Google Photos library. If an album id is specified, the media item(s) are also added to the album. By default the media item(s) will be added to the end of the library or album. If an album id and position are both defined, then the media items will be added to the album at the specified position. If multiple media items are given, they will be inserted at the specified position.

See: mediaItemsBatchCreate smart constructor.

Instances
Eq MediaItemsBatchCreate Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate

Data MediaItemsBatchCreate Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate

Methods

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

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

toConstr :: MediaItemsBatchCreate -> Constr #

dataTypeOf :: MediaItemsBatchCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MediaItemsBatchCreate Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate

Generic MediaItemsBatchCreate Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate

Associated Types

type Rep MediaItemsBatchCreate :: Type -> Type #

GoogleRequest MediaItemsBatchCreate Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate

type Rep MediaItemsBatchCreate Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate

type Rep MediaItemsBatchCreate = D1 (MetaData "MediaItemsBatchCreate" "Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate" "gogol-photoslibrary-0.4.0-GpZ5alnuI5C2GY8YRh8G4V" False) (C1 (MetaCons "MediaItemsBatchCreate'" PrefixI True) (((S1 (MetaSel (Just "_mibcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_mibcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_mibcPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_mibcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_mibcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mibcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BatchCreateMediaItemsRequest)) :*: (S1 (MetaSel (Just "_mibcBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mibcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes MediaItemsBatchCreate Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate

type Scopes MediaItemsBatchCreate = "https://www.googleapis.com/auth/photoslibrary" ': ("https://www.googleapis.com/auth/photoslibrary.appendonly" ': ("https://www.googleapis.com/auth/photoslibrary.sharing" ': ([] :: [Symbol])))
type Rs MediaItemsBatchCreate Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.BatchCreate

Request Lenses

mibcUploadProtocol :: Lens' MediaItemsBatchCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

mibcPp :: Lens' MediaItemsBatchCreate Bool Source #

Pretty-print response.

mibcUploadType :: Lens' MediaItemsBatchCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").