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 |
A simple Google Example Library API.
Synopsis
- libraryAgentService :: ServiceConfig
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- type LibraryAgentAPI = ShelvesBooksReturnResource :<|> (ShelvesBooksListResource :<|> (ShelvesBooksBorrowResource :<|> (ShelvesBooksGetResource :<|> (ShelvesListResource :<|> ShelvesGetResource))))
- module Network.Google.Resource.LibraryAgent.Shelves.Books.Borrow
- module Network.Google.Resource.LibraryAgent.Shelves.Books.Get
- module Network.Google.Resource.LibraryAgent.Shelves.Books.List
- module Network.Google.Resource.LibraryAgent.Shelves.Books.Return
- module Network.Google.Resource.LibraryAgent.Shelves.Get
- module Network.Google.Resource.LibraryAgent.Shelves.List
- data GoogleExampleLibraryagentV1Shelf
- googleExampleLibraryagentV1Shelf :: GoogleExampleLibraryagentV1Shelf
- gelvsName :: Lens' GoogleExampleLibraryagentV1Shelf (Maybe Text)
- gelvsTheme :: Lens' GoogleExampleLibraryagentV1Shelf (Maybe Text)
- data Xgafv
- data GoogleExampleLibraryagentV1ListShelvesResponse
- googleExampleLibraryagentV1ListShelvesResponse :: GoogleExampleLibraryagentV1ListShelvesResponse
- gelvlsrNextPageToken :: Lens' GoogleExampleLibraryagentV1ListShelvesResponse (Maybe Text)
- gelvlsrShelves :: Lens' GoogleExampleLibraryagentV1ListShelvesResponse [GoogleExampleLibraryagentV1Shelf]
- data GoogleExampleLibraryagentV1ListBooksResponse
- googleExampleLibraryagentV1ListBooksResponse :: GoogleExampleLibraryagentV1ListBooksResponse
- gelvlbrNextPageToken :: Lens' GoogleExampleLibraryagentV1ListBooksResponse (Maybe Text)
- gelvlbrBooks :: Lens' GoogleExampleLibraryagentV1ListBooksResponse [GoogleExampleLibraryagentV1Book]
- data GoogleExampleLibraryagentV1Book
- googleExampleLibraryagentV1Book :: GoogleExampleLibraryagentV1Book
- gelvbRead :: Lens' GoogleExampleLibraryagentV1Book (Maybe Bool)
- gelvbName :: Lens' GoogleExampleLibraryagentV1Book (Maybe Text)
- gelvbAuthor :: Lens' GoogleExampleLibraryagentV1Book (Maybe Text)
- gelvbTitle :: Lens' GoogleExampleLibraryagentV1Book (Maybe Text)
Service Configuration
libraryAgentService :: ServiceConfig Source #
Default request referring to version v1
of the Library Agent API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
API Declaration
type LibraryAgentAPI = ShelvesBooksReturnResource :<|> (ShelvesBooksListResource :<|> (ShelvesBooksBorrowResource :<|> (ShelvesBooksGetResource :<|> (ShelvesListResource :<|> ShelvesGetResource)))) Source #
Represents the entirety of the methods and resources available for the Library Agent API service.
Resources
libraryagent.shelves.books.borrow
libraryagent.shelves.books.get
libraryagent.shelves.books.list
libraryagent.shelves.books.return
libraryagent.shelves.get
libraryagent.shelves.list
Types
GoogleExampleLibraryagentV1Shelf
data GoogleExampleLibraryagentV1Shelf Source #
A Shelf contains a collection of books with a theme.
See: googleExampleLibraryagentV1Shelf
smart constructor.
Instances
googleExampleLibraryagentV1Shelf :: GoogleExampleLibraryagentV1Shelf Source #
Creates a value of GoogleExampleLibraryagentV1Shelf
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gelvsName :: Lens' GoogleExampleLibraryagentV1Shelf (Maybe Text) Source #
Output only. The resource name of the shelf. Shelf names have the form `shelves/{shelf_id}`. The name is ignored when creating a shelf.
gelvsTheme :: Lens' GoogleExampleLibraryagentV1Shelf (Maybe Text) Source #
The theme of the shelf
Xgafv
V1 error format.
Instances
GoogleExampleLibraryagentV1ListShelvesResponse
data GoogleExampleLibraryagentV1ListShelvesResponse Source #
Response message for LibraryAgent.ListShelves.
See: googleExampleLibraryagentV1ListShelvesResponse
smart constructor.
Instances
googleExampleLibraryagentV1ListShelvesResponse :: GoogleExampleLibraryagentV1ListShelvesResponse Source #
Creates a value of GoogleExampleLibraryagentV1ListShelvesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gelvlsrNextPageToken :: Lens' GoogleExampleLibraryagentV1ListShelvesResponse (Maybe Text) Source #
A token to retrieve next page of results. Pass this value in the ListShelvesRequest.page_token field in the subsequent call to `ListShelves` method to retrieve the next page of results.
gelvlsrShelves :: Lens' GoogleExampleLibraryagentV1ListShelvesResponse [GoogleExampleLibraryagentV1Shelf] Source #
The list of shelves.
GoogleExampleLibraryagentV1ListBooksResponse
data GoogleExampleLibraryagentV1ListBooksResponse Source #
Response message for LibraryAgent.ListBooks.
See: googleExampleLibraryagentV1ListBooksResponse
smart constructor.
Instances
googleExampleLibraryagentV1ListBooksResponse :: GoogleExampleLibraryagentV1ListBooksResponse Source #
Creates a value of GoogleExampleLibraryagentV1ListBooksResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gelvlbrNextPageToken :: Lens' GoogleExampleLibraryagentV1ListBooksResponse (Maybe Text) Source #
A token to retrieve next page of results. Pass this value in the ListBooksRequest.page_token field in the subsequent call to `ListBooks` method to retrieve the next page of results.
gelvlbrBooks :: Lens' GoogleExampleLibraryagentV1ListBooksResponse [GoogleExampleLibraryagentV1Book] Source #
The list of books.
GoogleExampleLibraryagentV1Book
data GoogleExampleLibraryagentV1Book Source #
A single book in the library.
See: googleExampleLibraryagentV1Book
smart constructor.
Instances
googleExampleLibraryagentV1Book :: GoogleExampleLibraryagentV1Book Source #
Creates a value of GoogleExampleLibraryagentV1Book
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gelvbRead :: Lens' GoogleExampleLibraryagentV1Book (Maybe Bool) Source #
Value indicating whether the book has been read.
gelvbName :: Lens' GoogleExampleLibraryagentV1Book (Maybe Text) Source #
The resource name of the book. Book names have the form `shelves/{shelf_id}/books/{book_id}`. The name is ignored when creating a book.
gelvbAuthor :: Lens' GoogleExampleLibraryagentV1Book (Maybe Text) Source #
The name of the book author.
gelvbTitle :: Lens' GoogleExampleLibraryagentV1Book (Maybe Text) Source #
The title of the book.