{-# 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.DownloadAccount
(
RelyingPartyDownloadAccountResource
, relyingPartyDownloadAccount
, RelyingPartyDownloadAccount
, rpdaPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyDownloadAccountResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"downloadAccount" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartyDownloadAccountRequest
:> Post '[JSON] DownloadAccountResponse
newtype RelyingPartyDownloadAccount = RelyingPartyDownloadAccount'
{ _rpdaPayload :: IdentitytoolkitRelyingPartyDownloadAccountRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyDownloadAccount
:: IdentitytoolkitRelyingPartyDownloadAccountRequest
-> RelyingPartyDownloadAccount
relyingPartyDownloadAccount pRpdaPayload_ =
RelyingPartyDownloadAccount'
{ _rpdaPayload = pRpdaPayload_
}
rpdaPayload :: Lens' RelyingPartyDownloadAccount IdentitytoolkitRelyingPartyDownloadAccountRequest
rpdaPayload
= lens _rpdaPayload (\ s a -> s{_rpdaPayload = a})
instance GoogleRequest RelyingPartyDownloadAccount
where
type Rs RelyingPartyDownloadAccount =
DownloadAccountResponse
type Scopes RelyingPartyDownloadAccount =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/firebase"]
requestClient RelyingPartyDownloadAccount'{..}
= go (Just AltJSON) _rpdaPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyDownloadAccountResource)
mempty