{-# 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.GetProjectConfig
(
RelyingPartyGetProjectConfigResource
, relyingPartyGetProjectConfig
, RelyingPartyGetProjectConfig
, rpgpcDelegatedProjectNumber
, rpgpcProjectNumber
) where
import Network.Google.IdentityToolkit.Types
import Network.Google.Prelude
type RelyingPartyGetProjectConfigResource =
"identitytoolkit" :>
"v3" :>
"relyingparty" :>
"getProjectConfig" :>
QueryParam "delegatedProjectNumber" Text :>
QueryParam "projectNumber" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON]
IdentitytoolkitRelyingPartyGetProjectConfigResponse
data RelyingPartyGetProjectConfig = RelyingPartyGetProjectConfig'
{ _rpgpcDelegatedProjectNumber :: !(Maybe Text)
, _rpgpcProjectNumber :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
relyingPartyGetProjectConfig
:: RelyingPartyGetProjectConfig
relyingPartyGetProjectConfig =
RelyingPartyGetProjectConfig'
{ _rpgpcDelegatedProjectNumber = Nothing
, _rpgpcProjectNumber = Nothing
}
rpgpcDelegatedProjectNumber :: Lens' RelyingPartyGetProjectConfig (Maybe Text)
rpgpcDelegatedProjectNumber
= lens _rpgpcDelegatedProjectNumber
(\ s a -> s{_rpgpcDelegatedProjectNumber = a})
rpgpcProjectNumber :: Lens' RelyingPartyGetProjectConfig (Maybe Text)
rpgpcProjectNumber
= lens _rpgpcProjectNumber
(\ s a -> s{_rpgpcProjectNumber = a})
instance GoogleRequest RelyingPartyGetProjectConfig
where
type Rs RelyingPartyGetProjectConfig =
IdentitytoolkitRelyingPartyGetProjectConfigResponse
type Scopes RelyingPartyGetProjectConfig =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RelyingPartyGetProjectConfig'{..}
= go _rpgpcDelegatedProjectNumber _rpgpcProjectNumber
(Just AltJSON)
identityToolkitService
where go
= buildClient
(Proxy :: Proxy RelyingPartyGetProjectConfigResource)
mempty