{-# 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.SignupNewUser
(
RelyingPartySignupNewUserResource
, relyingPartySignupNewUser
, RelyingPartySignupNewUser
, rpsnuPayload
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartySignupNewUserResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"signupNewUser" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
IdentitytoolkitRelyingPartySignupNewUserRequest
:> Post '[JSON] SignupNewUserResponse
newtype RelyingPartySignupNewUser = RelyingPartySignupNewUser'
{ _rpsnuPayload :: IdentitytoolkitRelyingPartySignupNewUserRequest
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartySignupNewUser
:: IdentitytoolkitRelyingPartySignupNewUserRequest
-> RelyingPartySignupNewUser
relyingPartySignupNewUser pRpsnuPayload_ =
RelyingPartySignupNewUser'
{ _rpsnuPayload = pRpsnuPayload_
}
rpsnuPayload :: Lens' RelyingPartySignupNewUser IdentitytoolkitRelyingPartySignupNewUserRequest
rpsnuPayload
= lens _rpsnuPayload (\ s a -> s{_rpsnuPayload = a})
instance GoogleRequest RelyingPartySignupNewUser
where
type Rs RelyingPartySignupNewUser =
SignupNewUserResponse
type Scopes RelyingPartySignupNewUser =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartySignupNewUser'{..}
= go (Just AltJSON) _rpsnuPayload
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartySignupNewUserResource)
mempty