{-# 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.MyConfig.SyncVolumeLicenses
(
MyConfigSyncVolumeLicensesResource
, myConfigSyncVolumeLicenses
, MyConfigSyncVolumeLicenses
, mcsvlCpksver
, mcsvlLocale
, mcsvlIncludeNonComicsSeries
, mcsvlVolumeIds
, mcsvlFeatures
, mcsvlSource
, mcsvlShowPreOrders
, mcsvlNonce
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type MyConfigSyncVolumeLicensesResource =
"books" :>
"v1" :>
"myconfig" :>
"syncVolumeLicenses" :>
QueryParam "source" Text :>
QueryParam "nonce" Text :>
QueryParam "cpksver" Text :>
QueryParam "locale" Text :>
QueryParam "includeNonComicsSeries" Bool :>
QueryParams "volumeIds" Text :>
QueryParams "features"
MyConfigSyncVolumeLicensesFeatures
:>
QueryParam "showPreorders" Bool :>
QueryParam "alt" AltJSON :> Post '[JSON] Volumes
data MyConfigSyncVolumeLicenses = MyConfigSyncVolumeLicenses'
{ _mcsvlCpksver :: !Text
, _mcsvlLocale :: !(Maybe Text)
, _mcsvlIncludeNonComicsSeries :: !(Maybe Bool)
, _mcsvlVolumeIds :: !(Maybe [Text])
, _mcsvlFeatures :: !(Maybe [MyConfigSyncVolumeLicensesFeatures])
, _mcsvlSource :: !Text
, _mcsvlShowPreOrders :: !(Maybe Bool)
, _mcsvlNonce :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
myConfigSyncVolumeLicenses
:: Text
-> Text
-> Text
-> MyConfigSyncVolumeLicenses
myConfigSyncVolumeLicenses pMcsvlCpksver_ pMcsvlSource_ pMcsvlNonce_ =
MyConfigSyncVolumeLicenses'
{ _mcsvlCpksver = pMcsvlCpksver_
, _mcsvlLocale = Nothing
, _mcsvlIncludeNonComicsSeries = Nothing
, _mcsvlVolumeIds = Nothing
, _mcsvlFeatures = Nothing
, _mcsvlSource = pMcsvlSource_
, _mcsvlShowPreOrders = Nothing
, _mcsvlNonce = pMcsvlNonce_
}
mcsvlCpksver :: Lens' MyConfigSyncVolumeLicenses Text
mcsvlCpksver
= lens _mcsvlCpksver (\ s a -> s{_mcsvlCpksver = a})
mcsvlLocale :: Lens' MyConfigSyncVolumeLicenses (Maybe Text)
mcsvlLocale
= lens _mcsvlLocale (\ s a -> s{_mcsvlLocale = a})
mcsvlIncludeNonComicsSeries :: Lens' MyConfigSyncVolumeLicenses (Maybe Bool)
mcsvlIncludeNonComicsSeries
= lens _mcsvlIncludeNonComicsSeries
(\ s a -> s{_mcsvlIncludeNonComicsSeries = a})
mcsvlVolumeIds :: Lens' MyConfigSyncVolumeLicenses [Text]
mcsvlVolumeIds
= lens _mcsvlVolumeIds
(\ s a -> s{_mcsvlVolumeIds = a})
. _Default
. _Coerce
mcsvlFeatures :: Lens' MyConfigSyncVolumeLicenses [MyConfigSyncVolumeLicensesFeatures]
mcsvlFeatures
= lens _mcsvlFeatures
(\ s a -> s{_mcsvlFeatures = a})
. _Default
. _Coerce
mcsvlSource :: Lens' MyConfigSyncVolumeLicenses Text
mcsvlSource
= lens _mcsvlSource (\ s a -> s{_mcsvlSource = a})
mcsvlShowPreOrders :: Lens' MyConfigSyncVolumeLicenses (Maybe Bool)
mcsvlShowPreOrders
= lens _mcsvlShowPreOrders
(\ s a -> s{_mcsvlShowPreOrders = a})
mcsvlNonce :: Lens' MyConfigSyncVolumeLicenses Text
mcsvlNonce
= lens _mcsvlNonce (\ s a -> s{_mcsvlNonce = a})
instance GoogleRequest MyConfigSyncVolumeLicenses
where
type Rs MyConfigSyncVolumeLicenses = Volumes
type Scopes MyConfigSyncVolumeLicenses =
'["https://www.googleapis.com/auth/books"]
requestClient MyConfigSyncVolumeLicenses'{..}
= go (Just _mcsvlSource) (Just _mcsvlNonce)
(Just _mcsvlCpksver)
_mcsvlLocale
_mcsvlIncludeNonComicsSeries
(_mcsvlVolumeIds ^. _Default)
(_mcsvlFeatures ^. _Default)
_mcsvlShowPreOrders
(Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy MyConfigSyncVolumeLicensesResource)
mempty