{-# 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.CloudLoading.DeleteBook
(
CloudLoadingDeleteBookResource
, cloudLoadingDeleteBook
, CloudLoadingDeleteBook
, cldbVolumeId
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type CloudLoadingDeleteBookResource =
"books" :>
"v1" :>
"cloudloading" :>
"deleteBook" :>
QueryParam "volumeId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype CloudLoadingDeleteBook = CloudLoadingDeleteBook'
{ _cldbVolumeId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
cloudLoadingDeleteBook
:: Text
-> CloudLoadingDeleteBook
cloudLoadingDeleteBook pCldbVolumeId_ =
CloudLoadingDeleteBook'
{ _cldbVolumeId = pCldbVolumeId_
}
cldbVolumeId :: Lens' CloudLoadingDeleteBook Text
cldbVolumeId
= lens _cldbVolumeId (\ s a -> s{_cldbVolumeId = a})
instance GoogleRequest CloudLoadingDeleteBook where
type Rs CloudLoadingDeleteBook = ()
type Scopes CloudLoadingDeleteBook =
'["https://www.googleapis.com/auth/books"]
requestClient CloudLoadingDeleteBook'{..}
= go (Just _cldbVolumeId) (Just AltJSON) booksService
where go
= buildClient
(Proxy :: Proxy CloudLoadingDeleteBookResource)
mempty