gogol-books-0.4.0: Google Books SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Books.CloudLoading.AddBook

Contents

Description

  • - |

See: Books API Reference for books.cloudloading.addBook.

Synopsis

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
Eq CloudLoadingAddBook Source # 
Instance details

Defined in Network.Google.Resource.Books.CloudLoading.AddBook

Data CloudLoadingAddBook Source # 
Instance details

Defined in Network.Google.Resource.Books.CloudLoading.AddBook

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CloudLoadingAddBook -> c CloudLoadingAddBook #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CloudLoadingAddBook #

toConstr :: CloudLoadingAddBook -> Constr #

dataTypeOf :: CloudLoadingAddBook -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CloudLoadingAddBook) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CloudLoadingAddBook) #

gmapT :: (forall b. Data b => b -> b) -> CloudLoadingAddBook -> CloudLoadingAddBook #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CloudLoadingAddBook -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CloudLoadingAddBook -> r #

gmapQ :: (forall d. Data d => d -> u) -> CloudLoadingAddBook -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CloudLoadingAddBook -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CloudLoadingAddBook -> m CloudLoadingAddBook #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CloudLoadingAddBook -> m CloudLoadingAddBook #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CloudLoadingAddBook -> m CloudLoadingAddBook #

Show CloudLoadingAddBook Source # 
Instance details

Defined in Network.Google.Resource.Books.CloudLoading.AddBook

Generic CloudLoadingAddBook Source # 
Instance details

Defined in Network.Google.Resource.Books.CloudLoading.AddBook

Associated Types

type Rep CloudLoadingAddBook :: Type -> Type #

GoogleRequest CloudLoadingAddBook Source # 
Instance details

Defined in Network.Google.Resource.Books.CloudLoading.AddBook

Associated Types

type Rs CloudLoadingAddBook :: Type #

type Scopes CloudLoadingAddBook :: [Symbol] #

type Rep CloudLoadingAddBook Source # 
Instance details

Defined in Network.Google.Resource.Books.CloudLoading.AddBook

type Rep CloudLoadingAddBook = D1 (MetaData "CloudLoadingAddBook" "Network.Google.Resource.Books.CloudLoading.AddBook" "gogol-books-0.4.0-JsYtirrXlXLDWYQKuxGcRl" False) (C1 (MetaCons "CloudLoadingAddBook'" PrefixI True) ((S1 (MetaSel (Just "_clabMimeType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_clabUploadClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_clabName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_clabDriveDocumentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes CloudLoadingAddBook Source # 
Instance details

Defined in Network.Google.Resource.Books.CloudLoading.AddBook

type Scopes CloudLoadingAddBook = "https://www.googleapis.com/auth/books" ': ([] :: [Symbol])
type Rs CloudLoadingAddBook Source # 
Instance details

Defined in Network.Google.Resource.Books.CloudLoading.AddBook

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.