{-# 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.ResetPassword
(
RelyingPartyResetPasswordResource
, relyingPartyResetPassword
, RelyingPartyResetPassword
, rprpPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyResetPasswordResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"resetPassword" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartyResetPasswordRequest
:> Post '[JSON] ResetPasswordResponse
newtype RelyingPartyResetPassword = RelyingPartyResetPassword'
{ _rprpPayload :: IdentitytoolkitRelyingPartyResetPasswordRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyResetPassword
:: IdentitytoolkitRelyingPartyResetPasswordRequest
-> RelyingPartyResetPassword
relyingPartyResetPassword pRprpPayload_ =
RelyingPartyResetPassword'
{ _rprpPayload = pRprpPayload_
}
rprpPayload :: Lens' RelyingPartyResetPassword IdentitytoolkitRelyingPartyResetPasswordRequest
rprpPayload
= lens _rprpPayload (\ s a -> s{_rprpPayload = a})
instance GoogleRequest RelyingPartyResetPassword
where
type Rs RelyingPartyResetPassword =
ResetPasswordResponse
type Scopes RelyingPartyResetPassword =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartyResetPassword'{..}
= go (Just AltJSON) _rprpPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyResetPasswordResource)
mempty