{-# 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.GetAccountInfo
(
RelyingPartyGetAccountInfoResource
, relyingPartyGetAccountInfo
, RelyingPartyGetAccountInfo
, rpgaiPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyGetAccountInfoResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"getAccountInfo" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartyGetAccountInfoRequest
:> Post '[JSON] GetAccountInfoResponse
newtype RelyingPartyGetAccountInfo = RelyingPartyGetAccountInfo'
{ _rpgaiPayload :: IdentitytoolkitRelyingPartyGetAccountInfoRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyGetAccountInfo
:: IdentitytoolkitRelyingPartyGetAccountInfoRequest
-> RelyingPartyGetAccountInfo
relyingPartyGetAccountInfo pRpgaiPayload_ =
RelyingPartyGetAccountInfo'
{ _rpgaiPayload = pRpgaiPayload_
}
rpgaiPayload :: Lens' RelyingPartyGetAccountInfo IdentitytoolkitRelyingPartyGetAccountInfoRequest
rpgaiPayload
= lens _rpgaiPayload (\ s a -> s{_rpgaiPayload = a})
instance GoogleRequest RelyingPartyGetAccountInfo
where
type Rs RelyingPartyGetAccountInfo =
GetAccountInfoResponse
type Scopes RelyingPartyGetAccountInfo =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartyGetAccountInfo'{..}
= go (Just AltJSON) _rpgaiPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyGetAccountInfoResource)
mempty