{-# 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.SetAccountInfo
(
RelyingPartySetAccountInfoResource
, relyingPartySetAccountInfo
, RelyingPartySetAccountInfo
, rpsaiPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartySetAccountInfoResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"setAccountInfo" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartySetAccountInfoRequest
:> Post '[JSON] SetAccountInfoResponse
newtype RelyingPartySetAccountInfo = RelyingPartySetAccountInfo'
{ _rpsaiPayload :: IdentitytoolkitRelyingPartySetAccountInfoRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartySetAccountInfo
:: IdentitytoolkitRelyingPartySetAccountInfoRequest
-> RelyingPartySetAccountInfo
relyingPartySetAccountInfo pRpsaiPayload_ =
RelyingPartySetAccountInfo'
{ _rpsaiPayload = pRpsaiPayload_
}
rpsaiPayload :: Lens' RelyingPartySetAccountInfo IdentitytoolkitRelyingPartySetAccountInfoRequest
rpsaiPayload
= lens _rpsaiPayload (\ s a -> s{_rpsaiPayload = a})
instance GoogleRequest RelyingPartySetAccountInfo
where
type Rs RelyingPartySetAccountInfo =
SetAccountInfoResponse
type Scopes RelyingPartySetAccountInfo =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartySetAccountInfo'{..}
= go (Just AltJSON) _rpsaiPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartySetAccountInfoResource)
mempty