{-# 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.VolumeAnnotations.List
(
LayersVolumeAnnotationsListResource
, layersVolumeAnnotationsList
, LayersVolumeAnnotationsList
, lvalStartOffSet
, lvalLocale
, lvalContentVersion
, lvalShowDeleted
, lvalVolumeAnnotationsVersion
, lvalUpdatedMax
, lvalUpdatedMin
, lvalEndOffSet
, lvalVolumeId
, lvalSource
, lvalPageToken
, lvalEndPosition
, lvalLayerId
, lvalMaxResults
, lvalStartPosition
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type LayersVolumeAnnotationsListResource =
"books" :>
"v1" :>
"volumes" :>
Capture "volumeId" Text :>
"layers" :>
Capture "layerId" Text :>
QueryParam "contentVersion" Text :>
QueryParam "startOffset" Text :>
QueryParam "locale" Text :>
QueryParam "showDeleted" Bool :>
QueryParam "volumeAnnotationsVersion" Text :>
QueryParam "updatedMax" Text :>
QueryParam "updatedMin" Text :>
QueryParam "endOffset" Text :>
QueryParam "source" Text :>
QueryParam "pageToken" Text :>
QueryParam "endPosition" Text :>
QueryParam "maxResults" (Textual Word32)
:>
QueryParam "startPosition" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] Volumeannotations
data LayersVolumeAnnotationsList = LayersVolumeAnnotationsList'
{ _lvalStartOffSet :: !(Maybe Text)
, _lvalLocale :: !(Maybe Text)
, _lvalContentVersion :: !Text
, _lvalShowDeleted :: !(Maybe Bool)
, _lvalVolumeAnnotationsVersion :: !(Maybe Text)
, _lvalUpdatedMax :: !(Maybe Text)
, _lvalUpdatedMin :: !(Maybe Text)
, _lvalEndOffSet :: !(Maybe Text)
, _lvalVolumeId :: !Text
, _lvalSource :: !(Maybe Text)
, _lvalPageToken :: !(Maybe Text)
, _lvalEndPosition :: !(Maybe Text)
, _lvalLayerId :: !Text
, _lvalMaxResults :: !(Maybe (Textual Word32))
, _lvalStartPosition :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
layersVolumeAnnotationsList
:: Text
-> Text
-> Text
-> LayersVolumeAnnotationsList
layersVolumeAnnotationsList pLvalContentVersion_ pLvalVolumeId_ pLvalLayerId_ =
LayersVolumeAnnotationsList'
{ _lvalStartOffSet = Nothing
, _lvalLocale = Nothing
, _lvalContentVersion = pLvalContentVersion_
, _lvalShowDeleted = Nothing
, _lvalVolumeAnnotationsVersion = Nothing
, _lvalUpdatedMax = Nothing
, _lvalUpdatedMin = Nothing
, _lvalEndOffSet = Nothing
, _lvalVolumeId = pLvalVolumeId_
, _lvalSource = Nothing
, _lvalPageToken = Nothing
, _lvalEndPosition = Nothing
, _lvalLayerId = pLvalLayerId_
, _lvalMaxResults = Nothing
, _lvalStartPosition = Nothing
}
lvalStartOffSet :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalStartOffSet
= lens _lvalStartOffSet
(\ s a -> s{_lvalStartOffSet = a})
lvalLocale :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalLocale
= lens _lvalLocale (\ s a -> s{_lvalLocale = a})
lvalContentVersion :: Lens' LayersVolumeAnnotationsList Text
lvalContentVersion
= lens _lvalContentVersion
(\ s a -> s{_lvalContentVersion = a})
lvalShowDeleted :: Lens' LayersVolumeAnnotationsList (Maybe Bool)
lvalShowDeleted
= lens _lvalShowDeleted
(\ s a -> s{_lvalShowDeleted = a})
lvalVolumeAnnotationsVersion :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalVolumeAnnotationsVersion
= lens _lvalVolumeAnnotationsVersion
(\ s a -> s{_lvalVolumeAnnotationsVersion = a})
lvalUpdatedMax :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalUpdatedMax
= lens _lvalUpdatedMax
(\ s a -> s{_lvalUpdatedMax = a})
lvalUpdatedMin :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalUpdatedMin
= lens _lvalUpdatedMin
(\ s a -> s{_lvalUpdatedMin = a})
lvalEndOffSet :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalEndOffSet
= lens _lvalEndOffSet
(\ s a -> s{_lvalEndOffSet = a})
lvalVolumeId :: Lens' LayersVolumeAnnotationsList Text
lvalVolumeId
= lens _lvalVolumeId (\ s a -> s{_lvalVolumeId = a})
lvalSource :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalSource
= lens _lvalSource (\ s a -> s{_lvalSource = a})
lvalPageToken :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalPageToken
= lens _lvalPageToken
(\ s a -> s{_lvalPageToken = a})
lvalEndPosition :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalEndPosition
= lens _lvalEndPosition
(\ s a -> s{_lvalEndPosition = a})
lvalLayerId :: Lens' LayersVolumeAnnotationsList Text
lvalLayerId
= lens _lvalLayerId (\ s a -> s{_lvalLayerId = a})
lvalMaxResults :: Lens' LayersVolumeAnnotationsList (Maybe Word32)
lvalMaxResults
= lens _lvalMaxResults
(\ s a -> s{_lvalMaxResults = a})
. mapping _Coerce
lvalStartPosition :: Lens' LayersVolumeAnnotationsList (Maybe Text)
lvalStartPosition
= lens _lvalStartPosition
(\ s a -> s{_lvalStartPosition = a})
instance GoogleRequest LayersVolumeAnnotationsList
where
type Rs LayersVolumeAnnotationsList =
Volumeannotations
type Scopes LayersVolumeAnnotationsList =
'["https://www.googleapis.com/auth/books"]
requestClient LayersVolumeAnnotationsList'{..}
= go _lvalVolumeId _lvalLayerId
(Just _lvalContentVersion)
_lvalStartOffSet
_lvalLocale
_lvalShowDeleted
_lvalVolumeAnnotationsVersion
_lvalUpdatedMax
_lvalUpdatedMin
_lvalEndOffSet
_lvalSource
_lvalPageToken
_lvalEndPosition
_lvalMaxResults
_lvalStartPosition
(Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy LayersVolumeAnnotationsListResource)
mempty