Class ShelvesResource.BooksResource
The "books" collection of methods.
Inherited Members
Namespace: Google.Apis.Libraryagent.v1
Assembly: Google.Apis.Libraryagent.v1.dll
Syntax
public class ShelvesResource.BooksResource
Constructors
BooksResource(IClientService)
Constructs a new resource.
Declaration
public BooksResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Borrow(string)
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.
Declaration
public virtual ShelvesResource.BooksResource.BorrowRequest Borrow(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the book to borrow. |
Returns
| Type | Description |
|---|---|
| ShelvesResource.BooksResource.BorrowRequest |
Get(string)
Gets a book. Returns NOT_FOUND if the book does not exist.
Declaration
public virtual ShelvesResource.BooksResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the book to retrieve. |
Returns
| Type | Description |
|---|---|
| ShelvesResource.BooksResource.GetRequest |
LibraryagentReturn(string)
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.
Declaration
public virtual ShelvesResource.BooksResource.LibraryagentReturnRequest LibraryagentReturn(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the book to return. |
Returns
| Type | Description |
|---|---|
| ShelvesResource.BooksResource.LibraryagentReturnRequest |
List(string)
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.
Declaration
public virtual ShelvesResource.BooksResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The name of the shelf whose books we'd like to list. |
Returns
| Type | Description |
|---|---|
| ShelvesResource.BooksResource.ListRequest |