ShelvesBooks
class ShelvesBooks extends Resource (View source)
The "books" collection of methods.
Typical usage is:
$libraryagentService = new Google\Service\Libraryagent(...);
$books = $libraryagentService->shelves_books;
Methods
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.
Gets a book. Returns NOT_FOUND if the book does not exist. (books.get)
Lists books in a shelf. The order is unspecified but deterministic. Newly created books will not necessarily be added to the end of this list. Returns NOT_FOUND if the shelf does not exist. (books.listShelvesBooks)
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. (books.returnShelvesBooks)
Details
GoogleExampleLibraryagentV1Book
borrow(string $name, array $optParams = [])
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. (books.borrow)
GoogleExampleLibraryagentV1Book
get(string $name, array $optParams = [])
Gets a book. Returns NOT_FOUND if the book does not exist. (books.get)
GoogleExampleLibraryagentV1ListBooksResponse
listShelvesBooks(string $parent, array $optParams = [])
Lists books in a shelf. The order is unspecified but deterministic. Newly created books will not necessarily be added to the end of this list. Returns NOT_FOUND if the shelf does not exist. (books.listShelvesBooks)
GoogleExampleLibraryagentV1Book
returnShelvesBooks(string $name, array $optParams = [])
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. (books.returnShelvesBooks)