{-# 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.Spectrum.Paws.GetSpectrum
(
PawsGetSpectrumResource
, pawsGetSpectrum
, PawsGetSpectrum
, pgsPayload
) where
import Network.Google.Prelude
import Network.Google.Spectrum.Types
type PawsGetSpectrumResource =
"spectrum" :>
"v1explorer" :>
"paws" :>
"getSpectrum" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PawsGetSpectrumRequest :>
Post '[JSON] PawsGetSpectrumResponse
newtype PawsGetSpectrum = PawsGetSpectrum'
{ _pgsPayload :: PawsGetSpectrumRequest
} deriving (Eq,Show,Data,Typeable,Generic)
pawsGetSpectrum
:: PawsGetSpectrumRequest
-> PawsGetSpectrum
pawsGetSpectrum pPgsPayload_ =
PawsGetSpectrum'
{ _pgsPayload = pPgsPayload_
}
pgsPayload :: Lens' PawsGetSpectrum PawsGetSpectrumRequest
pgsPayload
= lens _pgsPayload (\ s a -> s{_pgsPayload = a})
instance GoogleRequest PawsGetSpectrum where
type Rs PawsGetSpectrum = PawsGetSpectrumResponse
type Scopes PawsGetSpectrum = '[]
requestClient PawsGetSpectrum'{..}
= go (Just AltJSON) _pgsPayload spectrumService
where go
= buildClient
(Proxy :: Proxy PawsGetSpectrumResource)
mempty