{-# 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.LibraryAgent.Shelves.Books.Return
(
ShelvesBooksReturnResource
, shelvesBooksReturn
, ShelvesBooksReturn
, sbrXgafv
, sbrUploadProtocol
, sbrAccessToken
, sbrUploadType
, sbrName
, sbrCallback
) where
import Network.Google.LibraryAgent.Types
import Network.Google.Prelude
type ShelvesBooksReturnResource =
"v1" :>
CaptureMode "name" "return" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] GoogleExampleLibraryagentV1Book
data ShelvesBooksReturn = ShelvesBooksReturn'
{ _sbrXgafv :: !(Maybe Xgafv)
, _sbrUploadProtocol :: !(Maybe Text)
, _sbrAccessToken :: !(Maybe Text)
, _sbrUploadType :: !(Maybe Text)
, _sbrName :: !Text
, _sbrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
shelvesBooksReturn
:: Text
-> ShelvesBooksReturn
shelvesBooksReturn pSbrName_ =
ShelvesBooksReturn'
{ _sbrXgafv = Nothing
, _sbrUploadProtocol = Nothing
, _sbrAccessToken = Nothing
, _sbrUploadType = Nothing
, _sbrName = pSbrName_
, _sbrCallback = Nothing
}
sbrXgafv :: Lens' ShelvesBooksReturn (Maybe Xgafv)
sbrXgafv = lens _sbrXgafv (\ s a -> s{_sbrXgafv = a})
sbrUploadProtocol :: Lens' ShelvesBooksReturn (Maybe Text)
sbrUploadProtocol
= lens _sbrUploadProtocol
(\ s a -> s{_sbrUploadProtocol = a})
sbrAccessToken :: Lens' ShelvesBooksReturn (Maybe Text)
sbrAccessToken
= lens _sbrAccessToken
(\ s a -> s{_sbrAccessToken = a})
sbrUploadType :: Lens' ShelvesBooksReturn (Maybe Text)
sbrUploadType
= lens _sbrUploadType
(\ s a -> s{_sbrUploadType = a})
sbrName :: Lens' ShelvesBooksReturn Text
sbrName = lens _sbrName (\ s a -> s{_sbrName = a})
sbrCallback :: Lens' ShelvesBooksReturn (Maybe Text)
sbrCallback
= lens _sbrCallback (\ s a -> s{_sbrCallback = a})
instance GoogleRequest ShelvesBooksReturn where
type Rs ShelvesBooksReturn =
GoogleExampleLibraryagentV1Book
type Scopes ShelvesBooksReturn =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ShelvesBooksReturn'{..}
= go _sbrName _sbrXgafv _sbrUploadProtocol
_sbrAccessToken
_sbrUploadType
_sbrCallback
(Just AltJSON)
libraryAgentService
where go
= buildClient
(Proxy :: Proxy ShelvesBooksReturnResource)
mempty