{-# 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.FirebaseRemoteConfig.Projects.GetRemoteConfig
(
ProjectsGetRemoteConfigResource
, projectsGetRemoteConfig
, ProjectsGetRemoteConfig
, pgrcXgafv
, pgrcUploadProtocol
, pgrcProject
, pgrcPp
, pgrcAccessToken
, pgrcUploadType
, pgrcBearerToken
, pgrcCallback
) where
import Network.Google.FirebaseRemoteConfig.Types
import Network.Google.Prelude
type ProjectsGetRemoteConfigResource =
"v1" :>
Capture "project" Text :>
"remoteConfig" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "pp" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "bearer_token" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] RemoteConfig
data ProjectsGetRemoteConfig = ProjectsGetRemoteConfig'
{ _pgrcXgafv :: !(Maybe Xgafv)
, _pgrcUploadProtocol :: !(Maybe Text)
, _pgrcProject :: !Text
, _pgrcPp :: !Bool
, _pgrcAccessToken :: !(Maybe Text)
, _pgrcUploadType :: !(Maybe Text)
, _pgrcBearerToken :: !(Maybe Text)
, _pgrcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsGetRemoteConfig
:: Text
-> ProjectsGetRemoteConfig
projectsGetRemoteConfig pPgrcProject_ =
ProjectsGetRemoteConfig'
{ _pgrcXgafv = Nothing
, _pgrcUploadProtocol = Nothing
, _pgrcProject = pPgrcProject_
, _pgrcPp = True
, _pgrcAccessToken = Nothing
, _pgrcUploadType = Nothing
, _pgrcBearerToken = Nothing
, _pgrcCallback = Nothing
}
pgrcXgafv :: Lens' ProjectsGetRemoteConfig (Maybe Xgafv)
pgrcXgafv
= lens _pgrcXgafv (\ s a -> s{_pgrcXgafv = a})
pgrcUploadProtocol :: Lens' ProjectsGetRemoteConfig (Maybe Text)
pgrcUploadProtocol
= lens _pgrcUploadProtocol
(\ s a -> s{_pgrcUploadProtocol = a})
pgrcProject :: Lens' ProjectsGetRemoteConfig Text
pgrcProject
= lens _pgrcProject (\ s a -> s{_pgrcProject = a})
pgrcPp :: Lens' ProjectsGetRemoteConfig Bool
pgrcPp = lens _pgrcPp (\ s a -> s{_pgrcPp = a})
pgrcAccessToken :: Lens' ProjectsGetRemoteConfig (Maybe Text)
pgrcAccessToken
= lens _pgrcAccessToken
(\ s a -> s{_pgrcAccessToken = a})
pgrcUploadType :: Lens' ProjectsGetRemoteConfig (Maybe Text)
pgrcUploadType
= lens _pgrcUploadType
(\ s a -> s{_pgrcUploadType = a})
pgrcBearerToken :: Lens' ProjectsGetRemoteConfig (Maybe Text)
pgrcBearerToken
= lens _pgrcBearerToken
(\ s a -> s{_pgrcBearerToken = a})
pgrcCallback :: Lens' ProjectsGetRemoteConfig (Maybe Text)
pgrcCallback
= lens _pgrcCallback (\ s a -> s{_pgrcCallback = a})
instance GoogleRequest ProjectsGetRemoteConfig where
type Rs ProjectsGetRemoteConfig = RemoteConfig
type Scopes ProjectsGetRemoteConfig = '[]
requestClient ProjectsGetRemoteConfig'{..}
= go _pgrcProject _pgrcXgafv _pgrcUploadProtocol
(Just _pgrcPp)
_pgrcAccessToken
_pgrcUploadType
_pgrcBearerToken
_pgrcCallback
(Just AltJSON)
firebaseRemoteConfigService
where go
= buildClient
(Proxy :: Proxy ProjectsGetRemoteConfigResource)
mempty