{-# 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.DeleteAccount
(
RelyingPartyDeleteAccountResource
, relyingPartyDeleteAccount
, RelyingPartyDeleteAccount
, rPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyDeleteAccountResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"deleteAccount" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartyDeleteAccountRequest
:> Post '[JSON] DeleteAccountResponse
newtype RelyingPartyDeleteAccount = RelyingPartyDeleteAccount'
{ _rPayload :: IdentitytoolkitRelyingPartyDeleteAccountRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyDeleteAccount
:: IdentitytoolkitRelyingPartyDeleteAccountRequest
-> RelyingPartyDeleteAccount
relyingPartyDeleteAccount pRPayload_ =
RelyingPartyDeleteAccount'
{ _rPayload = pRPayload_
}
rPayload :: Lens' RelyingPartyDeleteAccount IdentitytoolkitRelyingPartyDeleteAccountRequest
rPayload = lens _rPayload (\ s a -> s{_rPayload = a})
instance GoogleRequest RelyingPartyDeleteAccount
where
type Rs RelyingPartyDeleteAccount =
DeleteAccountResponse
type Scopes RelyingPartyDeleteAccount =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartyDeleteAccount'{..}
= go (Just AltJSON) _rPayload identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyDeleteAccountResource)
mempty