{-# 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.Init
(
PawsInitResource
, pawsInit
, PawsInit
, piPayload
) where
import Network.Google.Prelude
import Network.Google.Spectrum.Types
type PawsInitResource =
"spectrum" :>
"v1explorer" :>
"paws" :>
"init" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PawsInitRequest :>
Post '[JSON] PawsInitResponse
newtype PawsInit = PawsInit'
{ _piPayload :: PawsInitRequest
} deriving (Eq,Show,Data,Typeable,Generic)
pawsInit
:: PawsInitRequest
-> PawsInit
pawsInit pPiPayload_ =
PawsInit'
{ _piPayload = pPiPayload_
}
piPayload :: Lens' PawsInit PawsInitRequest
piPayload
= lens _piPayload (\ s a -> s{_piPayload = a})
instance GoogleRequest PawsInit where
type Rs PawsInit = PawsInitResponse
type Scopes PawsInit = '[]
requestClient PawsInit'{..}
= go (Just AltJSON) _piPayload spectrumService
where go
= buildClient (Proxy :: Proxy PawsInitResource)
mempty