{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Books.Layers.AnnotationData.List
(
LayersAnnotationDataListResource
, layersAnnotationDataList
, LayersAnnotationDataList
, ladlW
, ladlScale
, ladlLocale
, ladlContentVersion
, ladlUpdatedMax
, ladlUpdatedMin
, ladlAnnotationDataId
, ladlVolumeId
, ladlSource
, ladlH
, ladlPageToken
, ladlLayerId
, ladlMaxResults
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type LayersAnnotationDataListResource =
"books" :>
"v1" :>
"volumes" :>
Capture "volumeId" Text :>
"layers" :>
Capture "layerId" Text :>
"data" :>
QueryParam "contentVersion" Text :>
QueryParam "w" (Textual Int32) :>
QueryParam "scale" (Textual Int32) :>
QueryParam "locale" Text :>
QueryParam "updatedMax" Text :>
QueryParam "updatedMin" Text :>
QueryParams "annotationDataId" Text :>
QueryParam "source" Text :>
QueryParam "h" (Textual Int32) :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Word32)
:>
QueryParam "alt" AltJSON :>
Get '[JSON] AnnotationsData
data LayersAnnotationDataList = LayersAnnotationDataList'
{ _ladlW :: !(Maybe (Textual Int32))
, _ladlScale :: !(Maybe (Textual Int32))
, _ladlLocale :: !(Maybe Text)
, _ladlContentVersion :: !Text
, _ladlUpdatedMax :: !(Maybe Text)
, _ladlUpdatedMin :: !(Maybe Text)
, _ladlAnnotationDataId :: !(Maybe [Text])
, _ladlVolumeId :: !Text
, _ladlSource :: !(Maybe Text)
, _ladlH :: !(Maybe (Textual Int32))
, _ladlPageToken :: !(Maybe Text)
, _ladlLayerId :: !Text
, _ladlMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
layersAnnotationDataList
:: Text
-> Text
-> Text
-> LayersAnnotationDataList
layersAnnotationDataList pLadlContentVersion_ pLadlVolumeId_ pLadlLayerId_ =
LayersAnnotationDataList'
{ _ladlW = Nothing
, _ladlScale = Nothing
, _ladlLocale = Nothing
, _ladlContentVersion = pLadlContentVersion_
, _ladlUpdatedMax = Nothing
, _ladlUpdatedMin = Nothing
, _ladlAnnotationDataId = Nothing
, _ladlVolumeId = pLadlVolumeId_
, _ladlSource = Nothing
, _ladlH = Nothing
, _ladlPageToken = Nothing
, _ladlLayerId = pLadlLayerId_
, _ladlMaxResults = Nothing
}
ladlW :: Lens' LayersAnnotationDataList (Maybe Int32)
ladlW
= lens _ladlW (\ s a -> s{_ladlW = a}) .
mapping _Coerce
ladlScale :: Lens' LayersAnnotationDataList (Maybe Int32)
ladlScale
= lens _ladlScale (\ s a -> s{_ladlScale = a}) .
mapping _Coerce
ladlLocale :: Lens' LayersAnnotationDataList (Maybe Text)
ladlLocale
= lens _ladlLocale (\ s a -> s{_ladlLocale = a})
ladlContentVersion :: Lens' LayersAnnotationDataList Text
ladlContentVersion
= lens _ladlContentVersion
(\ s a -> s{_ladlContentVersion = a})
ladlUpdatedMax :: Lens' LayersAnnotationDataList (Maybe Text)
ladlUpdatedMax
= lens _ladlUpdatedMax
(\ s a -> s{_ladlUpdatedMax = a})
ladlUpdatedMin :: Lens' LayersAnnotationDataList (Maybe Text)
ladlUpdatedMin
= lens _ladlUpdatedMin
(\ s a -> s{_ladlUpdatedMin = a})
ladlAnnotationDataId :: Lens' LayersAnnotationDataList [Text]
ladlAnnotationDataId
= lens _ladlAnnotationDataId
(\ s a -> s{_ladlAnnotationDataId = a})
. _Default
. _Coerce
ladlVolumeId :: Lens' LayersAnnotationDataList Text
ladlVolumeId
= lens _ladlVolumeId (\ s a -> s{_ladlVolumeId = a})
ladlSource :: Lens' LayersAnnotationDataList (Maybe Text)
ladlSource
= lens _ladlSource (\ s a -> s{_ladlSource = a})
ladlH :: Lens' LayersAnnotationDataList (Maybe Int32)
ladlH
= lens _ladlH (\ s a -> s{_ladlH = a}) .
mapping _Coerce
ladlPageToken :: Lens' LayersAnnotationDataList (Maybe Text)
ladlPageToken
= lens _ladlPageToken
(\ s a -> s{_ladlPageToken = a})
ladlLayerId :: Lens' LayersAnnotationDataList Text
ladlLayerId
= lens _ladlLayerId (\ s a -> s{_ladlLayerId = a})
ladlMaxResults :: Lens' LayersAnnotationDataList (Maybe Word32)
ladlMaxResults
= lens _ladlMaxResults
(\ s a -> s{_ladlMaxResults = a})
. mapping _Coerce
instance GoogleRequest LayersAnnotationDataList where
type Rs LayersAnnotationDataList = AnnotationsData
type Scopes LayersAnnotationDataList =
'["https://www.googleapis.com/auth/books"]
requestClient LayersAnnotationDataList'{..}
= go _ladlVolumeId _ladlLayerId
(Just _ladlContentVersion)
_ladlW
_ladlScale
_ladlLocale
_ladlUpdatedMax
_ladlUpdatedMin
(_ladlAnnotationDataId ^. _Default)
_ladlSource
_ladlH
_ladlPageToken
_ladlMaxResults
(Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy LayersAnnotationDataListResource)
mempty