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.Albums.Share

Contents

Description

Marks an album as 'shared' and accessible to other users. This action can only be performed on albums which were created by the developer via the API.

See: Photos Library API Reference for photoslibrary.albums.share.

Synopsis

REST Resource

type AlbumsShareResource = "v1" :> ("albums" :> (CaptureMode "albumId" "share" Text :> (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] ShareAlbumRequest :> Post '[JSON] ShareAlbumResponse))))))))))) Source #

A resource alias for photoslibrary.albums.share method which the AlbumsShare request conforms to.

Creating a Request

albumsShare Source #

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

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

data AlbumsShare Source #

Marks an album as 'shared' and accessible to other users. This action can only be performed on albums which were created by the developer via the API.

See: albumsShare smart constructor.

Instances
Eq AlbumsShare Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.Albums.Share

Data AlbumsShare Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.Albums.Share

Methods

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

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

toConstr :: AlbumsShare -> Constr #

dataTypeOf :: AlbumsShare -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AlbumsShare Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.Albums.Share

Generic AlbumsShare Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.Albums.Share

Associated Types

type Rep AlbumsShare :: Type -> Type #

GoogleRequest AlbumsShare Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.Albums.Share

Associated Types

type Rs AlbumsShare :: Type #

type Scopes AlbumsShare :: [Symbol] #

type Rep AlbumsShare Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.Albums.Share

type Scopes AlbumsShare Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.Albums.Share

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

Defined in Network.Google.Resource.PhotosLibrary.Albums.Share

Request Lenses

asXgafv :: Lens' AlbumsShare (Maybe Xgafv) Source #

V1 error format.

asAlbumId :: Lens' AlbumsShare Text Source #

Identifier of the album to be shared. This album id must belong to an album created by the developer. .

asUploadProtocol :: Lens' AlbumsShare (Maybe Text) Source #

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

asPp :: Lens' AlbumsShare Bool Source #

Pretty-print response.

asAccessToken :: Lens' AlbumsShare (Maybe Text) Source #

OAuth access token.

asUploadType :: Lens' AlbumsShare (Maybe Text) Source #

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

asPayload :: Lens' AlbumsShare ShareAlbumRequest Source #

Multipart request metadata.

asBearerToken :: Lens' AlbumsShare (Maybe Text) Source #

OAuth bearer token.