{-# 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.GetSpectrumBatch
(
PawsGetSpectrumBatchResource
, pawsGetSpectrumBatch
, PawsGetSpectrumBatch
, pgsbPayload
) where
import Network.Google.Prelude
import Network.Google.Spectrum.Types
type PawsGetSpectrumBatchResource =
"spectrum" :>
"v1explorer" :>
"paws" :>
"getSpectrumBatch" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PawsGetSpectrumBatchRequest :>
Post '[JSON] PawsGetSpectrumBatchResponse
newtype PawsGetSpectrumBatch = PawsGetSpectrumBatch'
{ _pgsbPayload :: PawsGetSpectrumBatchRequest
} deriving (Eq,Show,Data,Typeable,Generic)
pawsGetSpectrumBatch
:: PawsGetSpectrumBatchRequest
-> PawsGetSpectrumBatch
pawsGetSpectrumBatch pPgsbPayload_ =
PawsGetSpectrumBatch'
{ _pgsbPayload = pPgsbPayload_
}
pgsbPayload :: Lens' PawsGetSpectrumBatch PawsGetSpectrumBatchRequest
pgsbPayload
= lens _pgsbPayload (\ s a -> s{_pgsbPayload = a})
instance GoogleRequest PawsGetSpectrumBatch where
type Rs PawsGetSpectrumBatch =
PawsGetSpectrumBatchResponse
type Scopes PawsGetSpectrumBatch = '[]
requestClient PawsGetSpectrumBatch'{..}
= go (Just AltJSON) _pgsbPayload spectrumService
where go
= buildClient
(Proxy :: Proxy PawsGetSpectrumBatchResource)
mempty