{-# 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.Share
(
FamilysharingShareResource
, familysharingShare
, FamilysharingShare
, fsVolumeId
, fsSource
, fsDocId
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type FamilysharingShareResource =
"books" :>
"v1" :>
"familysharing" :>
"share" :>
QueryParam "volumeId" Text :>
QueryParam "source" Text :>
QueryParam "docId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
data FamilysharingShare = FamilysharingShare'
{ _fsVolumeId :: !(Maybe Text)
, _fsSource :: !(Maybe Text)
, _fsDocId :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
familysharingShare
:: FamilysharingShare
familysharingShare =
FamilysharingShare'
{ _fsVolumeId = Nothing
, _fsSource = Nothing
, _fsDocId = Nothing
}
fsVolumeId :: Lens' FamilysharingShare (Maybe Text)
fsVolumeId
= lens _fsVolumeId (\ s a -> s{_fsVolumeId = a})
fsSource :: Lens' FamilysharingShare (Maybe Text)
fsSource = lens _fsSource (\ s a -> s{_fsSource = a})
fsDocId :: Lens' FamilysharingShare (Maybe Text)
fsDocId = lens _fsDocId (\ s a -> s{_fsDocId = a})
instance GoogleRequest FamilysharingShare where
type Rs FamilysharingShare = ()
type Scopes FamilysharingShare =
'["https://www.googleapis.com/auth/books"]
requestClient FamilysharingShare'{..}
= go _fsVolumeId _fsSource _fsDocId (Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy FamilysharingShareResource)
mempty