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.MyLibrary.Annotations.Insert

Contents

Description

Inserts a new annotation.

See: Books API Reference for books.mylibrary.annotations.insert.

Synopsis

REST Resource

type MyLibraryAnnotationsInsertResource = "books" :> ("v1" :> ("mylibrary" :> ("annotations" :> (QueryParam "country" Text :> (QueryParam "showOnlySummaryInResponse" Bool :> (QueryParam "annotationId" Text :> (QueryParam "source" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Annotation :> Post '[JSON] Annotation))))))))) Source #

A resource alias for books.mylibrary.annotations.insert method which the MyLibraryAnnotationsInsert request conforms to.

Creating a Request

myLibraryAnnotationsInsert Source #

Creates a value of MyLibraryAnnotationsInsert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data MyLibraryAnnotationsInsert Source #

Inserts a new annotation.

See: myLibraryAnnotationsInsert smart constructor.

Instances
Eq MyLibraryAnnotationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Books.MyLibrary.Annotations.Insert

Data MyLibraryAnnotationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Books.MyLibrary.Annotations.Insert

Methods

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

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

toConstr :: MyLibraryAnnotationsInsert -> Constr #

dataTypeOf :: MyLibraryAnnotationsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show MyLibraryAnnotationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Books.MyLibrary.Annotations.Insert

Generic MyLibraryAnnotationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Books.MyLibrary.Annotations.Insert

Associated Types

type Rep MyLibraryAnnotationsInsert :: Type -> Type #

GoogleRequest MyLibraryAnnotationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Books.MyLibrary.Annotations.Insert

type Rep MyLibraryAnnotationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Books.MyLibrary.Annotations.Insert

type Rep MyLibraryAnnotationsInsert = D1 (MetaData "MyLibraryAnnotationsInsert" "Network.Google.Resource.Books.MyLibrary.Annotations.Insert" "gogol-books-0.4.0-JsYtirrXlXLDWYQKuxGcRl" False) (C1 (MetaCons "MyLibraryAnnotationsInsert'" PrefixI True) ((S1 (MetaSel (Just "_mlaiCountry") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mlaiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Annotation)) :*: (S1 (MetaSel (Just "_mlaiShowOnlySummaryInResponse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_mlaiAnnotationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mlaiSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes MyLibraryAnnotationsInsert Source # 
Instance details

Defined in Network.Google.Resource.Books.MyLibrary.Annotations.Insert

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

Defined in Network.Google.Resource.Books.MyLibrary.Annotations.Insert

Request Lenses

mlaiCountry :: Lens' MyLibraryAnnotationsInsert (Maybe Text) Source #

ISO-3166-1 code to override the IP-based location.

mlaiShowOnlySummaryInResponse :: Lens' MyLibraryAnnotationsInsert (Maybe Bool) Source #

Requests that only the summary of the specified layer be provided in the response.

mlaiAnnotationId :: Lens' MyLibraryAnnotationsInsert (Maybe Text) Source #

The ID for the annotation to insert.

mlaiSource :: Lens' MyLibraryAnnotationsInsert (Maybe Text) Source #

String to identify the originator of this request.