| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.LibraryAgent.Shelves.Books.Borrow
Description
Borrow a book from the library. Returns the book if it is borrowed successfully. Returns NOT_FOUND if the book does not exist in the library. Returns quota exceeded error if the amount of books borrowed exceeds allocation quota in any dimensions.
See: Library Agent API Reference for libraryagent.shelves.books.borrow.
Synopsis
- type ShelvesBooksBorrowResource = "v1" :> (CaptureMode "name" "borrow" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] GoogleExampleLibraryagentV1Book)))))))
- shelvesBooksBorrow :: Text -> ShelvesBooksBorrow
- data ShelvesBooksBorrow
- sbbXgafv :: Lens' ShelvesBooksBorrow (Maybe Xgafv)
- sbbUploadProtocol :: Lens' ShelvesBooksBorrow (Maybe Text)
- sbbAccessToken :: Lens' ShelvesBooksBorrow (Maybe Text)
- sbbUploadType :: Lens' ShelvesBooksBorrow (Maybe Text)
- sbbName :: Lens' ShelvesBooksBorrow Text
- sbbCallback :: Lens' ShelvesBooksBorrow (Maybe Text)
REST Resource
type ShelvesBooksBorrowResource = "v1" :> (CaptureMode "name" "borrow" 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.borrow method which the
ShelvesBooksBorrow request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> ShelvesBooksBorrow |
Creates a value of ShelvesBooksBorrow with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ShelvesBooksBorrow Source #
Borrow a book from the library. Returns the book if it is borrowed successfully. Returns NOT_FOUND if the book does not exist in the library. Returns quota exceeded error if the amount of books borrowed exceeds allocation quota in any dimensions.
See: shelvesBooksBorrow smart constructor.
Instances
Request Lenses
sbbUploadProtocol :: Lens' ShelvesBooksBorrow (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sbbAccessToken :: Lens' ShelvesBooksBorrow (Maybe Text) Source #
OAuth access token.
sbbUploadType :: Lens' ShelvesBooksBorrow (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sbbCallback :: Lens' ShelvesBooksBorrow (Maybe Text) Source #
JSONP