{-# 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.VerifyPassword
(
RelyingPartyVerifyPasswordResource
, relyingPartyVerifyPassword
, RelyingPartyVerifyPassword
, rpvpPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyVerifyPasswordResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"verifyPassword" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartyVerifyPasswordRequest
:> Post '[JSON] VerifyPasswordResponse
newtype RelyingPartyVerifyPassword = RelyingPartyVerifyPassword'
{ _rpvpPayload :: IdentitytoolkitRelyingPartyVerifyPasswordRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyVerifyPassword
:: IdentitytoolkitRelyingPartyVerifyPasswordRequest
-> RelyingPartyVerifyPassword
relyingPartyVerifyPassword pRpvpPayload_ =
RelyingPartyVerifyPassword'
{ _rpvpPayload = pRpvpPayload_
}
rpvpPayload :: Lens' RelyingPartyVerifyPassword IdentitytoolkitRelyingPartyVerifyPasswordRequest
rpvpPayload
= lens _rpvpPayload (\ s a -> s{_rpvpPayload = a})
instance GoogleRequest RelyingPartyVerifyPassword
where
type Rs RelyingPartyVerifyPassword =
VerifyPasswordResponse
type Scopes RelyingPartyVerifyPassword =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartyVerifyPassword'{..}
= go (Just AltJSON) _rpvpPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyVerifyPasswordResource)
mempty