{-# 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.GetOOBConfirmationCode
(
RelyingPartyGetOOBConfirmationCodeResource
, relyingPartyGetOOBConfirmationCode
, RelyingPartyGetOOBConfirmationCode
, rpgoobccPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyGetOOBConfirmationCodeResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"getOobConfirmationCode" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] RelyingParty :>
Post '[JSON] GetOOBConfirmationCodeResponse
newtype RelyingPartyGetOOBConfirmationCode = RelyingPartyGetOOBConfirmationCode'
{ _rpgoobccPayload :: RelyingParty
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyGetOOBConfirmationCode
:: RelyingParty
-> RelyingPartyGetOOBConfirmationCode
relyingPartyGetOOBConfirmationCode pRpgoobccPayload_ =
RelyingPartyGetOOBConfirmationCode'
{ _rpgoobccPayload = pRpgoobccPayload_
}
rpgoobccPayload :: Lens' RelyingPartyGetOOBConfirmationCode RelyingParty
rpgoobccPayload
= lens _rpgoobccPayload
(\ s a -> s{_rpgoobccPayload = a})
instance GoogleRequest
RelyingPartyGetOOBConfirmationCode where
type Rs RelyingPartyGetOOBConfirmationCode =
GetOOBConfirmationCodeResponse
type Scopes RelyingPartyGetOOBConfirmationCode =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartyGetOOBConfirmationCode'{..}
= go (Just AltJSON) _rpgoobccPayload
identityToolkitService
where go
= buildClient
(Proxy ::
Proxy RelyingPartyGetOOBConfirmationCodeResource)
mempty