{-# 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.ClearVolumes
(
MyLibraryBookshelvesClearVolumesResource
, myLibraryBookshelvesClearVolumes
, MyLibraryBookshelvesClearVolumes
, mlbcvShelf
, mlbcvSource
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type MyLibraryBookshelvesClearVolumesResource =
"books" :>
"v1" :>
"mylibrary" :>
"bookshelves" :>
Capture "shelf" Text :>
"clearVolumes" :>
QueryParam "source" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
data MyLibraryBookshelvesClearVolumes = MyLibraryBookshelvesClearVolumes'
{ _mlbcvShelf :: !Text
, _mlbcvSource :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
myLibraryBookshelvesClearVolumes
:: Text
-> MyLibraryBookshelvesClearVolumes
myLibraryBookshelvesClearVolumes pMlbcvShelf_ =
MyLibraryBookshelvesClearVolumes'
{ _mlbcvShelf = pMlbcvShelf_
, _mlbcvSource = Nothing
}
mlbcvShelf :: Lens' MyLibraryBookshelvesClearVolumes Text
mlbcvShelf
= lens _mlbcvShelf (\ s a -> s{_mlbcvShelf = a})
mlbcvSource :: Lens' MyLibraryBookshelvesClearVolumes (Maybe Text)
mlbcvSource
= lens _mlbcvSource (\ s a -> s{_mlbcvSource = a})
instance GoogleRequest
MyLibraryBookshelvesClearVolumes where
type Rs MyLibraryBookshelvesClearVolumes = ()
type Scopes MyLibraryBookshelvesClearVolumes =
'["https://www.googleapis.com/auth/books"]
requestClient MyLibraryBookshelvesClearVolumes'{..}
= go _mlbcvShelf _mlbcvSource (Just AltJSON)
booksService
where go
= buildClient
(Proxy ::
Proxy MyLibraryBookshelvesClearVolumesResource)
mempty