{-# 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.Familysharing.Unshare
(
FamilysharingUnshareResource
, familysharingUnshare
, FamilysharingUnshare
, fuVolumeId
, fuSource
, fuDocId
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type FamilysharingUnshareResource =
"books" :>
"v1" :>
"familysharing" :>
"unshare" :>
QueryParam "volumeId" Text :>
QueryParam "source" Text :>
QueryParam "docId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
data FamilysharingUnshare = FamilysharingUnshare'
{ _fuVolumeId :: !(Maybe Text)
, _fuSource :: !(Maybe Text)
, _fuDocId :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
familysharingUnshare
:: FamilysharingUnshare
familysharingUnshare =
FamilysharingUnshare'
{ _fuVolumeId = Nothing
, _fuSource = Nothing
, _fuDocId = Nothing
}
fuVolumeId :: Lens' FamilysharingUnshare (Maybe Text)
fuVolumeId
= lens _fuVolumeId (\ s a -> s{_fuVolumeId = a})
fuSource :: Lens' FamilysharingUnshare (Maybe Text)
fuSource = lens _fuSource (\ s a -> s{_fuSource = a})
fuDocId :: Lens' FamilysharingUnshare (Maybe Text)
fuDocId = lens _fuDocId (\ s a -> s{_fuDocId = a})
instance GoogleRequest FamilysharingUnshare where
type Rs FamilysharingUnshare = ()
type Scopes FamilysharingUnshare =
'["https://www.googleapis.com/auth/books"]
requestClient FamilysharingUnshare'{..}
= go _fuVolumeId _fuSource _fuDocId (Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy FamilysharingUnshareResource)
mempty