{-# 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.IdentityToolkit.RelyingParty.VerifyAssertion
(
RelyingPartyVerifyAssertionResource
, relyingPartyVerifyAssertion
, RelyingPartyVerifyAssertion
, rpvaPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyVerifyAssertionResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"verifyAssertion" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartyVerifyAssertionRequest
:> Post '[JSON] VerifyAssertionResponse
newtype RelyingPartyVerifyAssertion = RelyingPartyVerifyAssertion'
{ _rpvaPayload :: IdentitytoolkitRelyingPartyVerifyAssertionRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyVerifyAssertion
:: IdentitytoolkitRelyingPartyVerifyAssertionRequest
-> RelyingPartyVerifyAssertion
relyingPartyVerifyAssertion pRpvaPayload_ =
RelyingPartyVerifyAssertion'
{ _rpvaPayload = pRpvaPayload_
}
rpvaPayload :: Lens' RelyingPartyVerifyAssertion IdentitytoolkitRelyingPartyVerifyAssertionRequest
rpvaPayload
= lens _rpvaPayload (\ s a -> s{_rpvaPayload = a})
instance GoogleRequest RelyingPartyVerifyAssertion
where
type Rs RelyingPartyVerifyAssertion =
VerifyAssertionResponse
type Scopes RelyingPartyVerifyAssertion =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartyVerifyAssertion'{..}
= go (Just AltJSON) _rpvaPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyVerifyAssertionResource)
mempty