{-# 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.Get
(
LayersVolumeAnnotationsGetResource
, layersVolumeAnnotationsGet
, LayersVolumeAnnotationsGet
, lvagLocale
, lvagAnnotationId
, lvagVolumeId
, lvagSource
, lvagLayerId
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type LayersVolumeAnnotationsGetResource =
"books" :>
"v1" :>
"volumes" :>
Capture "volumeId" Text :>
"layers" :>
Capture "layerId" Text :>
"annotations" :>
Capture "annotationId" Text :>
QueryParam "locale" Text :>
QueryParam "source" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] Volumeannotation
data LayersVolumeAnnotationsGet = LayersVolumeAnnotationsGet'
{ _lvagLocale :: !(Maybe Text)
, _lvagAnnotationId :: !Text
, _lvagVolumeId :: !Text
, _lvagSource :: !(Maybe Text)
, _lvagLayerId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
layersVolumeAnnotationsGet
:: Text
-> Text
-> Text
-> LayersVolumeAnnotationsGet
layersVolumeAnnotationsGet pLvagAnnotationId_ pLvagVolumeId_ pLvagLayerId_ =
LayersVolumeAnnotationsGet'
{ _lvagLocale = Nothing
, _lvagAnnotationId = pLvagAnnotationId_
, _lvagVolumeId = pLvagVolumeId_
, _lvagSource = Nothing
, _lvagLayerId = pLvagLayerId_
}
lvagLocale :: Lens' LayersVolumeAnnotationsGet (Maybe Text)
lvagLocale
= lens _lvagLocale (\ s a -> s{_lvagLocale = a})
lvagAnnotationId :: Lens' LayersVolumeAnnotationsGet Text
lvagAnnotationId
= lens _lvagAnnotationId
(\ s a -> s{_lvagAnnotationId = a})
lvagVolumeId :: Lens' LayersVolumeAnnotationsGet Text
lvagVolumeId
= lens _lvagVolumeId (\ s a -> s{_lvagVolumeId = a})
lvagSource :: Lens' LayersVolumeAnnotationsGet (Maybe Text)
lvagSource
= lens _lvagSource (\ s a -> s{_lvagSource = a})
lvagLayerId :: Lens' LayersVolumeAnnotationsGet Text
lvagLayerId
= lens _lvagLayerId (\ s a -> s{_lvagLayerId = a})
instance GoogleRequest LayersVolumeAnnotationsGet
where
type Rs LayersVolumeAnnotationsGet = Volumeannotation
type Scopes LayersVolumeAnnotationsGet =
'["https://www.googleapis.com/auth/books"]
requestClient LayersVolumeAnnotationsGet'{..}
= go _lvagVolumeId _lvagLayerId _lvagAnnotationId
_lvagLocale
_lvagSource
(Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy LayersVolumeAnnotationsGetResource)
mempty