{-# 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.NotifySpectrumUse
(
PawsNotifySpectrumUseResource
, pawsNotifySpectrumUse
, PawsNotifySpectrumUse
, pnsuPayload
) where
import Network.Google.Prelude
import Network.Google.Spectrum.Types
type PawsNotifySpectrumUseResource =
"spectrum" :>
"v1explorer" :>
"paws" :>
"notifySpectrumUse" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PawsNotifySpectrumUseRequest :>
Post '[JSON] PawsNotifySpectrumUseResponse
newtype PawsNotifySpectrumUse = PawsNotifySpectrumUse'
{ _pnsuPayload :: PawsNotifySpectrumUseRequest
} deriving (Eq,Show,Data,Typeable,Generic)
pawsNotifySpectrumUse
:: PawsNotifySpectrumUseRequest
-> PawsNotifySpectrumUse
pawsNotifySpectrumUse pPnsuPayload_ =
PawsNotifySpectrumUse'
{ _pnsuPayload = pPnsuPayload_
}
pnsuPayload :: Lens' PawsNotifySpectrumUse PawsNotifySpectrumUseRequest
pnsuPayload
= lens _pnsuPayload (\ s a -> s{_pnsuPayload = a})
instance GoogleRequest PawsNotifySpectrumUse where
type Rs PawsNotifySpectrumUse =
PawsNotifySpectrumUseResponse
type Scopes PawsNotifySpectrumUse = '[]
requestClient PawsNotifySpectrumUse'{..}
= go (Just AltJSON) _pnsuPayload spectrumService
where go
= buildClient
(Proxy :: Proxy PawsNotifySpectrumUseResource)
mempty