{-# 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.Volumes.Associated.List
(
VolumesAssociatedListResource
, volumesAssociatedList
, VolumesAssociatedList
, valLocale
, valMaxAllowedMaturityRating
, valVolumeId
, valSource
, valAssociation
) where
import Network.Google.Books.Types
import Network.Google.Prelude
type VolumesAssociatedListResource =
"books" :>
"v1" :>
"volumes" :>
Capture "volumeId" Text :>
"associated" :>
QueryParam "locale" Text :>
QueryParam "maxAllowedMaturityRating"
VolumesAssociatedListMaxAllowedMaturityRating
:>
QueryParam "source" Text :>
QueryParam "association"
VolumesAssociatedListAssociation
:> QueryParam "alt" AltJSON :> Get '[JSON] Volumes
data VolumesAssociatedList = VolumesAssociatedList'
{ _valLocale :: !(Maybe Text)
, _valMaxAllowedMaturityRating :: !(Maybe VolumesAssociatedListMaxAllowedMaturityRating)
, _valVolumeId :: !Text
, _valSource :: !(Maybe Text)
, _valAssociation :: !(Maybe VolumesAssociatedListAssociation)
} deriving (Eq,Show,Data,Typeable,Generic)
volumesAssociatedList
:: Text
-> VolumesAssociatedList
volumesAssociatedList pValVolumeId_ =
VolumesAssociatedList'
{ _valLocale = Nothing
, _valMaxAllowedMaturityRating = Nothing
, _valVolumeId = pValVolumeId_
, _valSource = Nothing
, _valAssociation = Nothing
}
valLocale :: Lens' VolumesAssociatedList (Maybe Text)
valLocale
= lens _valLocale (\ s a -> s{_valLocale = a})
valMaxAllowedMaturityRating :: Lens' VolumesAssociatedList (Maybe VolumesAssociatedListMaxAllowedMaturityRating)
valMaxAllowedMaturityRating
= lens _valMaxAllowedMaturityRating
(\ s a -> s{_valMaxAllowedMaturityRating = a})
valVolumeId :: Lens' VolumesAssociatedList Text
valVolumeId
= lens _valVolumeId (\ s a -> s{_valVolumeId = a})
valSource :: Lens' VolumesAssociatedList (Maybe Text)
valSource
= lens _valSource (\ s a -> s{_valSource = a})
valAssociation :: Lens' VolumesAssociatedList (Maybe VolumesAssociatedListAssociation)
valAssociation
= lens _valAssociation
(\ s a -> s{_valAssociation = a})
instance GoogleRequest VolumesAssociatedList where
type Rs VolumesAssociatedList = Volumes
type Scopes VolumesAssociatedList =
'["https://www.googleapis.com/auth/books"]
requestClient VolumesAssociatedList'{..}
= go _valVolumeId _valLocale
_valMaxAllowedMaturityRating
_valSource
_valAssociation
(Just AltJSON)
booksService
where go
= buildClient
(Proxy :: Proxy VolumesAssociatedListResource)
mempty