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 |
- - |
See: Books API Reference for books.cloudloading.addBook
.
Synopsis
- type CloudLoadingAddBookResource = "books" :> ("v1" :> ("cloudloading" :> ("addBook" :> (QueryParam "mime_type" Text :> (QueryParam "upload_client_token" Text :> (QueryParam "name" Text :> (QueryParam "drive_document_id" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] BooksCloudLoadingResource))))))))
- cloudLoadingAddBook :: CloudLoadingAddBook
- data CloudLoadingAddBook
- clabMimeType :: Lens' CloudLoadingAddBook (Maybe Text)
- clabUploadClientToken :: Lens' CloudLoadingAddBook (Maybe Text)
- clabName :: Lens' CloudLoadingAddBook (Maybe Text)
- clabDriveDocumentId :: Lens' CloudLoadingAddBook (Maybe Text)
REST Resource
type CloudLoadingAddBookResource = "books" :> ("v1" :> ("cloudloading" :> ("addBook" :> (QueryParam "mime_type" Text :> (QueryParam "upload_client_token" Text :> (QueryParam "name" Text :> (QueryParam "drive_document_id" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] BooksCloudLoadingResource)))))))) Source #
A resource alias for books.cloudloading.addBook
method which the
CloudLoadingAddBook
request conforms to.
Creating a Request
cloudLoadingAddBook :: CloudLoadingAddBook Source #
Creates a value of CloudLoadingAddBook
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CloudLoadingAddBook Source #
See: cloudLoadingAddBook
smart constructor.
Instances
Request Lenses
clabMimeType :: Lens' CloudLoadingAddBook (Maybe Text) Source #
The document MIME type. It can be set only if the drive_document_id is set.
clabName :: Lens' CloudLoadingAddBook (Maybe Text) Source #
The document name. It can be set only if the drive_document_id is set.
clabDriveDocumentId :: Lens' CloudLoadingAddBook (Maybe Text) Source #
A drive document id. The upload_client_token must not be set.