{-# 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.MyLibrary.Bookshelves.Volumes.List
(
MyLibraryBookshelvesVolumesListResource
, myLibraryBookshelvesVolumesList
, MyLibraryBookshelvesVolumesList
, mlbvlCountry
, mlbvlQ
, mlbvlShelf
, mlbvlSource
, mlbvlProjection
, mlbvlStartIndex
, mlbvlMaxResults
, mlbvlShowPreOrders
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type MyLibraryBookshelvesVolumesListResource =
"books" :>
"v1" :>
"mylibrary" :>
"bookshelves" :>
Capture "shelf" Text :>
"volumes" :>
QueryParam "country" Text :>
QueryParam "q" Text :>
QueryParam "source" Text :>
QueryParam "projection"
MyLibraryBookshelvesVolumesListProjection
:>
QueryParam "startIndex" (Textual Word32) :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "showPreorders" Bool :>
QueryParam "alt" AltJSON :> Get '[JSON] Volumes
data MyLibraryBookshelvesVolumesList = MyLibraryBookshelvesVolumesList'
{ _mlbvlCountry :: !(Maybe Text)
, _mlbvlQ :: !(Maybe Text)
, _mlbvlShelf :: !Text
, _mlbvlSource :: !(Maybe Text)
, _mlbvlProjection :: !(Maybe MyLibraryBookshelvesVolumesListProjection)
, _mlbvlStartIndex :: !(Maybe (Textual Word32))
, _mlbvlMaxResults :: !(Maybe (Textual Word32))
, _mlbvlShowPreOrders :: !(Maybe Bool)
} deriving (Eq,Show,Data,Typeable,Generic)
myLibraryBookshelvesVolumesList
:: Text
-> MyLibraryBookshelvesVolumesList
myLibraryBookshelvesVolumesList pMlbvlShelf_ =
MyLibraryBookshelvesVolumesList'
{ _mlbvlCountry = Nothing
, _mlbvlQ = Nothing
, _mlbvlShelf = pMlbvlShelf_
, _mlbvlSource = Nothing
, _mlbvlProjection = Nothing
, _mlbvlStartIndex = Nothing
, _mlbvlMaxResults = Nothing
, _mlbvlShowPreOrders = Nothing
}
mlbvlCountry :: Lens' MyLibraryBookshelvesVolumesList (Maybe Text)
mlbvlCountry
= lens _mlbvlCountry (\ s a -> s{_mlbvlCountry = a})
mlbvlQ :: Lens' MyLibraryBookshelvesVolumesList (Maybe Text)
mlbvlQ = lens _mlbvlQ (\ s a -> s{_mlbvlQ = a})
mlbvlShelf :: Lens' MyLibraryBookshelvesVolumesList Text
mlbvlShelf
= lens _mlbvlShelf (\ s a -> s{_mlbvlShelf = a})
mlbvlSource :: Lens' MyLibraryBookshelvesVolumesList (Maybe Text)
mlbvlSource
= lens _mlbvlSource (\ s a -> s{_mlbvlSource = a})
mlbvlProjection :: Lens' MyLibraryBookshelvesVolumesList (Maybe MyLibraryBookshelvesVolumesListProjection)
mlbvlProjection
= lens _mlbvlProjection
(\ s a -> s{_mlbvlProjection = a})
mlbvlStartIndex :: Lens' MyLibraryBookshelvesVolumesList (Maybe Word32)
mlbvlStartIndex
= lens _mlbvlStartIndex
(\ s a -> s{_mlbvlStartIndex = a})
. mapping _Coerce
mlbvlMaxResults :: Lens' MyLibraryBookshelvesVolumesList (Maybe Word32)
mlbvlMaxResults
= lens _mlbvlMaxResults
(\ s a -> s{_mlbvlMaxResults = a})
. mapping _Coerce
mlbvlShowPreOrders :: Lens' MyLibraryBookshelvesVolumesList (Maybe Bool)
mlbvlShowPreOrders
= lens _mlbvlShowPreOrders
(\ s a -> s{_mlbvlShowPreOrders = a})
instance GoogleRequest
MyLibraryBookshelvesVolumesList where
type Rs MyLibraryBookshelvesVolumesList = Volumes
type Scopes MyLibraryBookshelvesVolumesList =
'["https://www.googleapis.com/auth/books"]
requestClient MyLibraryBookshelvesVolumesList'{..}
= go _mlbvlShelf _mlbvlCountry _mlbvlQ _mlbvlSource
_mlbvlProjection
_mlbvlStartIndex
_mlbvlMaxResults
_mlbvlShowPreOrders
(Just AltJSON)
booksService
where go
= buildClient
(Proxy ::
Proxy MyLibraryBookshelvesVolumesListResource)
mempty