Class ShelvesResource.BooksResource.BorrowRequest
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.
Inheritance
ShelvesResource.BooksResource.BorrowRequest
Inherited Members
Namespace: Google.Apis.Libraryagent.v1
Assembly: Google.Apis.Libraryagent.v1.dll
Syntax
public class ShelvesResource.BooksResource.BorrowRequest : LibraryagentBaseServiceRequest<GoogleExampleLibraryagentV1Book>, IClientServiceRequest<GoogleExampleLibraryagentV1Book>, IClientServiceRequest
Constructors
BorrowRequest(IClientService, string)
Constructs a new Borrow request.
Declaration
public BorrowRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Libraryagent.v1.Data.GoogleExampleLibraryagentV1Book>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Libraryagent.v1.Data.GoogleExampleLibraryagentV1Book>.MethodName
Name
Required. The name of the book to borrow.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Libraryagent.v1.Data.GoogleExampleLibraryagentV1Book>.RestPath
Methods
InitParameters()
Initializes Borrow parameter list.
Declaration
protected override void InitParameters()