{-# 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.VerifyDevice
(
PawsVerifyDeviceResource
, pawsVerifyDevice
, PawsVerifyDevice
, pvdPayload
) where
import Network.Google.Prelude
import Network.Google.Spectrum.Types
type PawsVerifyDeviceResource =
"spectrum" :>
"v1explorer" :>
"paws" :>
"verifyDevice" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PawsVerifyDeviceRequest :>
Post '[JSON] PawsVerifyDeviceResponse
newtype PawsVerifyDevice = PawsVerifyDevice'
{ _pvdPayload :: PawsVerifyDeviceRequest
} deriving (Eq,Show,Data,Typeable,Generic)
pawsVerifyDevice
:: PawsVerifyDeviceRequest
-> PawsVerifyDevice
pawsVerifyDevice pPvdPayload_ =
PawsVerifyDevice'
{ _pvdPayload = pPvdPayload_
}
pvdPayload :: Lens' PawsVerifyDevice PawsVerifyDeviceRequest
pvdPayload
= lens _pvdPayload (\ s a -> s{_pvdPayload = a})
instance GoogleRequest PawsVerifyDevice where
type Rs PawsVerifyDevice = PawsVerifyDeviceResponse
type Scopes PawsVerifyDevice = '[]
requestClient PawsVerifyDevice'{..}
= go (Just AltJSON) _pvdPayload spectrumService
where go
= buildClient
(Proxy :: Proxy PawsVerifyDeviceResource)
mempty