Structs§

  • A single book in the library.
  • Response message for LibraryAgent.ListBooks.
  • Response message for LibraryAgent.ListShelves.
  • A Shelf contains a collection of books with a theme.
  • Central instance to access all Libraryagent related resource activities
  • 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.
  • Gets a book. Returns NOT_FOUND if the book does not exist.
  • 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.
  • 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.
  • Gets a shelf. Returns NOT_FOUND if the shelf does not exist.
  • Lists shelves. The order is unspecified but deterministic. Newly created shelves will not necessarily be added to the end of this list.
  • A builder providing access to all methods supported on shelf resources. It is not used directly, but through the Libraryagent hub.

Enums§