{-# 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.Get
(
ShelvesBooksGetResource
, shelvesBooksGet
, ShelvesBooksGet
, sbgXgafv
, sbgUploadProtocol
, sbgAccessToken
, sbgUploadType
, sbgName
, sbgCallback
) where
import Network.Google.LibraryAgent.Types
import Network.Google.Prelude
type ShelvesBooksGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleExampleLibraryagentV1Book
data ShelvesBooksGet = ShelvesBooksGet'
{ _sbgXgafv :: !(Maybe Xgafv)
, _sbgUploadProtocol :: !(Maybe Text)
, _sbgAccessToken :: !(Maybe Text)
, _sbgUploadType :: !(Maybe Text)
, _sbgName :: !Text
, _sbgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
shelvesBooksGet
:: Text
-> ShelvesBooksGet
shelvesBooksGet pSbgName_ =
ShelvesBooksGet'
{ _sbgXgafv = Nothing
, _sbgUploadProtocol = Nothing
, _sbgAccessToken = Nothing
, _sbgUploadType = Nothing
, _sbgName = pSbgName_
, _sbgCallback = Nothing
}
sbgXgafv :: Lens' ShelvesBooksGet (Maybe Xgafv)
sbgXgafv = lens _sbgXgafv (\ s a -> s{_sbgXgafv = a})
sbgUploadProtocol :: Lens' ShelvesBooksGet (Maybe Text)
sbgUploadProtocol
= lens _sbgUploadProtocol
(\ s a -> s{_sbgUploadProtocol = a})
sbgAccessToken :: Lens' ShelvesBooksGet (Maybe Text)
sbgAccessToken
= lens _sbgAccessToken
(\ s a -> s{_sbgAccessToken = a})
sbgUploadType :: Lens' ShelvesBooksGet (Maybe Text)
sbgUploadType
= lens _sbgUploadType
(\ s a -> s{_sbgUploadType = a})
sbgName :: Lens' ShelvesBooksGet Text
sbgName = lens _sbgName (\ s a -> s{_sbgName = a})
sbgCallback :: Lens' ShelvesBooksGet (Maybe Text)
sbgCallback
= lens _sbgCallback (\ s a -> s{_sbgCallback = a})
instance GoogleRequest ShelvesBooksGet where
type Rs ShelvesBooksGet =
GoogleExampleLibraryagentV1Book
type Scopes ShelvesBooksGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ShelvesBooksGet'{..}
= go _sbgName _sbgXgafv _sbgUploadProtocol
_sbgAccessToken
_sbgUploadType
_sbgCallback
(Just AltJSON)
libraryAgentService
where go
= buildClient
(Proxy :: Proxy ShelvesBooksGetResource)
mempty