{-# 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.Volumes.UserUploaded.List
(
VolumesUserUploadedListResource
, volumesUserUploadedList
, VolumesUserUploadedList
, vuulProcessingState
, vuulLocale
, vuulVolumeId
, vuulSource
, vuulStartIndex
, vuulMaxResults
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type VolumesUserUploadedListResource =
"books" :>
"v1" :>
"volumes" :>
"useruploaded" :>
QueryParams "processingState"
VolumesUserUploadedListProcessingState
:>
QueryParam "locale" Text :>
QueryParams "volumeId" Text :>
QueryParam "source" Text :>
QueryParam "startIndex" (Textual Word32) :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :> Get '[JSON] Volumes
data VolumesUserUploadedList = VolumesUserUploadedList'
{ _vuulProcessingState :: !(Maybe [VolumesUserUploadedListProcessingState])
, _vuulLocale :: !(Maybe Text)
, _vuulVolumeId :: !(Maybe [Text])
, _vuulSource :: !(Maybe Text)
, _vuulStartIndex :: !(Maybe (Textual Word32))
, _vuulMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
volumesUserUploadedList
:: VolumesUserUploadedList
volumesUserUploadedList =
VolumesUserUploadedList'
{ _vuulProcessingState = Nothing
, _vuulLocale = Nothing
, _vuulVolumeId = Nothing
, _vuulSource = Nothing
, _vuulStartIndex = Nothing
, _vuulMaxResults = Nothing
}
vuulProcessingState :: Lens' VolumesUserUploadedList [VolumesUserUploadedListProcessingState]
vuulProcessingState
= lens _vuulProcessingState
(\ s a -> s{_vuulProcessingState = a})
. _Default
. _Coerce
vuulLocale :: Lens' VolumesUserUploadedList (Maybe Text)
vuulLocale
= lens _vuulLocale (\ s a -> s{_vuulLocale = a})
vuulVolumeId :: Lens' VolumesUserUploadedList [Text]
vuulVolumeId
= lens _vuulVolumeId (\ s a -> s{_vuulVolumeId = a})
. _Default
. _Coerce
vuulSource :: Lens' VolumesUserUploadedList (Maybe Text)
vuulSource
= lens _vuulSource (\ s a -> s{_vuulSource = a})
vuulStartIndex :: Lens' VolumesUserUploadedList (Maybe Word32)
vuulStartIndex
= lens _vuulStartIndex
(\ s a -> s{_vuulStartIndex = a})
. mapping _Coerce
vuulMaxResults :: Lens' VolumesUserUploadedList (Maybe Word32)
vuulMaxResults
= lens _vuulMaxResults
(\ s a -> s{_vuulMaxResults = a})
. mapping _Coerce
instance GoogleRequest VolumesUserUploadedList where
type Rs VolumesUserUploadedList = Volumes
type Scopes VolumesUserUploadedList =
'["https://www.googleapis.com/auth/books"]
requestClient VolumesUserUploadedList'{..}
= go (_vuulProcessingState ^. _Default) _vuulLocale
(_vuulVolumeId ^. _Default)
_vuulSource
_vuulStartIndex
_vuulMaxResults
(Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy VolumesUserUploadedListResource)
mempty