{-# 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.SendVerificationCode
(
RelyingPartySendVerificationCodeResource
, relyingPartySendVerificationCode
, RelyingPartySendVerificationCode
, rpsvcPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartySendVerificationCodeResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"sendVerificationCode" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartySendVerificationCodeRequest
:>
Post '[JSON]
IdentitytoolkitRelyingPartySendVerificationCodeResponse
newtype RelyingPartySendVerificationCode = RelyingPartySendVerificationCode'
{ _rpsvcPayload :: IdentitytoolkitRelyingPartySendVerificationCodeRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartySendVerificationCode
:: IdentitytoolkitRelyingPartySendVerificationCodeRequest
-> RelyingPartySendVerificationCode
relyingPartySendVerificationCode pRpsvcPayload_ =
RelyingPartySendVerificationCode'
{ _rpsvcPayload = pRpsvcPayload_
}
rpsvcPayload :: Lens' RelyingPartySendVerificationCode IdentitytoolkitRelyingPartySendVerificationCodeRequest
rpsvcPayload
= lens _rpsvcPayload (\ s a -> s{_rpsvcPayload = a})
instance GoogleRequest
RelyingPartySendVerificationCode where
type Rs RelyingPartySendVerificationCode =
IdentitytoolkitRelyingPartySendVerificationCodeResponse
type Scopes RelyingPartySendVerificationCode =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartySendVerificationCode'{..}
= go (Just AltJSON) _rpsvcPayload
identityToolkitService
where go
= buildClient
(Proxy ::
Proxy RelyingPartySendVerificationCodeResource)
mempty