{-# 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.List
(
ShelvesBooksListResource
, shelvesBooksList
, ShelvesBooksList
, sblParent
, sblXgafv
, sblUploadProtocol
, sblAccessToken
, sblUploadType
, sblPageToken
, sblPageSize
, sblCallback
) where
import Network.Google.LibraryAgent.Types
import Network.Google.Prelude
type ShelvesBooksListResource =
"v1" :>
Capture "parent" Text :>
"books" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON]
GoogleExampleLibraryagentV1ListBooksResponse
data ShelvesBooksList = ShelvesBooksList'
{ _sblParent :: !Text
, _sblXgafv :: !(Maybe Xgafv)
, _sblUploadProtocol :: !(Maybe Text)
, _sblAccessToken :: !(Maybe Text)
, _sblUploadType :: !(Maybe Text)
, _sblPageToken :: !(Maybe Text)
, _sblPageSize :: !(Maybe (Textual Int32))
, _sblCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
shelvesBooksList
:: Text
-> ShelvesBooksList
shelvesBooksList pSblParent_ =
ShelvesBooksList'
{ _sblParent = pSblParent_
, _sblXgafv = Nothing
, _sblUploadProtocol = Nothing
, _sblAccessToken = Nothing
, _sblUploadType = Nothing
, _sblPageToken = Nothing
, _sblPageSize = Nothing
, _sblCallback = Nothing
}
sblParent :: Lens' ShelvesBooksList Text
sblParent
= lens _sblParent (\ s a -> s{_sblParent = a})
sblXgafv :: Lens' ShelvesBooksList (Maybe Xgafv)
sblXgafv = lens _sblXgafv (\ s a -> s{_sblXgafv = a})
sblUploadProtocol :: Lens' ShelvesBooksList (Maybe Text)
sblUploadProtocol
= lens _sblUploadProtocol
(\ s a -> s{_sblUploadProtocol = a})
sblAccessToken :: Lens' ShelvesBooksList (Maybe Text)
sblAccessToken
= lens _sblAccessToken
(\ s a -> s{_sblAccessToken = a})
sblUploadType :: Lens' ShelvesBooksList (Maybe Text)
sblUploadType
= lens _sblUploadType
(\ s a -> s{_sblUploadType = a})
sblPageToken :: Lens' ShelvesBooksList (Maybe Text)
sblPageToken
= lens _sblPageToken (\ s a -> s{_sblPageToken = a})
sblPageSize :: Lens' ShelvesBooksList (Maybe Int32)
sblPageSize
= lens _sblPageSize (\ s a -> s{_sblPageSize = a}) .
mapping _Coerce
sblCallback :: Lens' ShelvesBooksList (Maybe Text)
sblCallback
= lens _sblCallback (\ s a -> s{_sblCallback = a})
instance GoogleRequest ShelvesBooksList where
type Rs ShelvesBooksList =
GoogleExampleLibraryagentV1ListBooksResponse
type Scopes ShelvesBooksList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ShelvesBooksList'{..}
= go _sblParent _sblXgafv _sblUploadProtocol
_sblAccessToken
_sblUploadType
_sblPageToken
_sblPageSize
_sblCallback
(Just AltJSON)
libraryAgentService
where go
= buildClient
(Proxy :: Proxy ShelvesBooksListResource)
mempty