{-# 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
-- | Reset password for a user.
--
-- /See:/ 'relyingPartyResetPassword' smart constructor.
newtype RelyingPartyResetPassword = RelyingPartyResetPassword'
{ _rprpPayload :: IdentitytoolkitRelyingPartyResetPasswordRequest
} deriving (Eq,Show,Data,Typeable,Generic)
-- | Creates a value of 'RelyingPartyResetPassword' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'rprpPayload'
relyingPartyResetPassword
:: IdentitytoolkitRelyingPartyResetPasswordRequest -- ^ 'rprpPayload'
-> RelyingPartyResetPassword
relyingPartyResetPassword pRprpPayload_ =
RelyingPartyResetPassword'
{ _rprpPayload = pRprpPayload_
}
-- | Multipart request metadata.
rprpPayload :: Lens' RelyingPartyResetPassword IdentitytoolkitRelyingPartyResetPasswordRequest
rprpPayload
= lens _rprpPayload (\ s a -> s{_rprpPayload = a})
instance GoogleRequest RelyingPartyResetPassword
where
type Rs RelyingPartyResetPassword =
ResetPasswordResponse
type Scopes RelyingPartyResetPassword = '[]
requestClient RelyingPartyResetPassword'{..}
= go (Just AltJSON) _rprpPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyResetPasswordResource)
mempty