gogol-libraryagent-0.4.0: Google Library Agent 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.LibraryAgent.Shelves.Books.Return

Contents

Description

Return a book to the library. Returns the book if it is returned to the library successfully. Returns error if the book does not belong to the library or the users didn't borrow before.

See: Library Agent API Reference for libraryagent.shelves.books.return.

Synopsis

REST Resource

type ShelvesBooksReturnResource = "v1" :> (CaptureMode "name" "return" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] GoogleExampleLibraryagentV1Book))))))) Source #

A resource alias for libraryagent.shelves.books.return method which the ShelvesBooksReturn request conforms to.

Creating a Request

shelvesBooksReturn Source #

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

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

data ShelvesBooksReturn Source #

Return a book to the library. Returns the book if it is returned to the library successfully. Returns error if the book does not belong to the library or the users didn't borrow before.

See: shelvesBooksReturn smart constructor.

Instances
Eq ShelvesBooksReturn Source # 
Instance details

Defined in Network.Google.Resource.LibraryAgent.Shelves.Books.Return

Data ShelvesBooksReturn Source # 
Instance details

Defined in Network.Google.Resource.LibraryAgent.Shelves.Books.Return

Methods

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

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

toConstr :: ShelvesBooksReturn -> Constr #

dataTypeOf :: ShelvesBooksReturn -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ShelvesBooksReturn Source # 
Instance details

Defined in Network.Google.Resource.LibraryAgent.Shelves.Books.Return

Generic ShelvesBooksReturn Source # 
Instance details

Defined in Network.Google.Resource.LibraryAgent.Shelves.Books.Return

Associated Types

type Rep ShelvesBooksReturn :: Type -> Type #

GoogleRequest ShelvesBooksReturn Source # 
Instance details

Defined in Network.Google.Resource.LibraryAgent.Shelves.Books.Return

Associated Types

type Rs ShelvesBooksReturn :: Type #

type Scopes ShelvesBooksReturn :: [Symbol] #

type Rep ShelvesBooksReturn Source # 
Instance details

Defined in Network.Google.Resource.LibraryAgent.Shelves.Books.Return

type Rep ShelvesBooksReturn = D1 (MetaData "ShelvesBooksReturn" "Network.Google.Resource.LibraryAgent.Shelves.Books.Return" "gogol-libraryagent-0.4.0-3DDw7qDFYgp6HuQ2dTY0m5" False) (C1 (MetaCons "ShelvesBooksReturn'" PrefixI True) ((S1 (MetaSel (Just "_sbrXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_sbrUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sbrAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_sbrUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sbrName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_sbrCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ShelvesBooksReturn Source # 
Instance details

Defined in Network.Google.Resource.LibraryAgent.Shelves.Books.Return

type Scopes ShelvesBooksReturn = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ShelvesBooksReturn Source # 
Instance details

Defined in Network.Google.Resource.LibraryAgent.Shelves.Books.Return

Request Lenses

sbrUploadProtocol :: Lens' ShelvesBooksReturn (Maybe Text) Source #

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

sbrUploadType :: Lens' ShelvesBooksReturn (Maybe Text) Source #

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

sbrName :: Lens' ShelvesBooksReturn Text Source #

The name of the book to return.