{-# 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.CreateAuthURI
(
RelyingPartyCreateAuthURIResource
, relyingPartyCreateAuthURI
, RelyingPartyCreateAuthURI
, rpcauPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyCreateAuthURIResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"createAuthUri" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartyCreateAuthURIRequest
:> Post '[JSON] CreateAuthURIResponse
newtype RelyingPartyCreateAuthURI = RelyingPartyCreateAuthURI'
{ _rpcauPayload :: IdentitytoolkitRelyingPartyCreateAuthURIRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyCreateAuthURI
:: IdentitytoolkitRelyingPartyCreateAuthURIRequest
-> RelyingPartyCreateAuthURI
relyingPartyCreateAuthURI pRpcauPayload_ =
RelyingPartyCreateAuthURI'
{ _rpcauPayload = pRpcauPayload_
}
rpcauPayload :: Lens' RelyingPartyCreateAuthURI IdentitytoolkitRelyingPartyCreateAuthURIRequest
rpcauPayload
= lens _rpcauPayload (\ s a -> s{_rpcauPayload = a})
instance GoogleRequest RelyingPartyCreateAuthURI
where
type Rs RelyingPartyCreateAuthURI =
CreateAuthURIResponse
type Scopes RelyingPartyCreateAuthURI =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartyCreateAuthURI'{..}
= go (Just AltJSON) _rpcauPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyCreateAuthURIResource)
mempty