{-# 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
-- | Get a code for user action confirmation.
--
-- /See:/ 'relyingPartyGetOOBConfirmationCode' smart constructor.
newtype RelyingPartyGetOOBConfirmationCode = RelyingPartyGetOOBConfirmationCode'
{ _rpgoobccPayload :: RelyingParty
} deriving (Eq,Show,Data,Typeable,Generic)
-- | Creates a value of 'RelyingPartyGetOOBConfirmationCode' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'rpgoobccPayload'
relyingPartyGetOOBConfirmationCode
:: RelyingParty -- ^ 'rpgoobccPayload'
-> RelyingPartyGetOOBConfirmationCode
relyingPartyGetOOBConfirmationCode pRpgoobccPayload_ =
RelyingPartyGetOOBConfirmationCode'
{ _rpgoobccPayload = pRpgoobccPayload_
}
-- | Multipart request metadata.
rpgoobccPayload :: Lens' RelyingPartyGetOOBConfirmationCode RelyingParty
rpgoobccPayload
= lens _rpgoobccPayload
(\ s a -> s{_rpgoobccPayload = a})
instance GoogleRequest
RelyingPartyGetOOBConfirmationCode where
type Rs RelyingPartyGetOOBConfirmationCode =
GetOOBConfirmationCodeResponse
type Scopes RelyingPartyGetOOBConfirmationCode = '[]
requestClient RelyingPartyGetOOBConfirmationCode'{..}
= go (Just AltJSON) _rpgoobccPayload
identityToolkitService
where go
= buildClient
(Proxy ::
Proxy RelyingPartyGetOOBConfirmationCodeResource)
mempty