{-# 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.CloudSearch.Settings.SearchApplications.Get
(
SettingsSearchApplicationsGetResource
, settingsSearchApplicationsGet
, SettingsSearchApplicationsGet
, ssagXgafv
, ssagUploadProtocol
, ssagAccessToken
, ssagUploadType
, ssagName
, ssagDebugOptionsEnableDebugging
, ssagCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type SettingsSearchApplicationsGetResource =
"v1" :>
"settings" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "debugOptions.enableDebugging" Bool :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] SearchApplication
data SettingsSearchApplicationsGet = SettingsSearchApplicationsGet'
{ _ssagXgafv :: !(Maybe Xgafv)
, _ssagUploadProtocol :: !(Maybe Text)
, _ssagAccessToken :: !(Maybe Text)
, _ssagUploadType :: !(Maybe Text)
, _ssagName :: !Text
, _ssagDebugOptionsEnableDebugging :: !(Maybe Bool)
, _ssagCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
settingsSearchApplicationsGet
:: Text
-> SettingsSearchApplicationsGet
settingsSearchApplicationsGet pSsagName_ =
SettingsSearchApplicationsGet'
{ _ssagXgafv = Nothing
, _ssagUploadProtocol = Nothing
, _ssagAccessToken = Nothing
, _ssagUploadType = Nothing
, _ssagName = pSsagName_
, _ssagDebugOptionsEnableDebugging = Nothing
, _ssagCallback = Nothing
}
ssagXgafv :: Lens' SettingsSearchApplicationsGet (Maybe Xgafv)
ssagXgafv
= lens _ssagXgafv (\ s a -> s{_ssagXgafv = a})
ssagUploadProtocol :: Lens' SettingsSearchApplicationsGet (Maybe Text)
ssagUploadProtocol
= lens _ssagUploadProtocol
(\ s a -> s{_ssagUploadProtocol = a})
ssagAccessToken :: Lens' SettingsSearchApplicationsGet (Maybe Text)
ssagAccessToken
= lens _ssagAccessToken
(\ s a -> s{_ssagAccessToken = a})
ssagUploadType :: Lens' SettingsSearchApplicationsGet (Maybe Text)
ssagUploadType
= lens _ssagUploadType
(\ s a -> s{_ssagUploadType = a})
ssagName :: Lens' SettingsSearchApplicationsGet Text
ssagName = lens _ssagName (\ s a -> s{_ssagName = a})
ssagDebugOptionsEnableDebugging :: Lens' SettingsSearchApplicationsGet (Maybe Bool)
ssagDebugOptionsEnableDebugging
= lens _ssagDebugOptionsEnableDebugging
(\ s a -> s{_ssagDebugOptionsEnableDebugging = a})
ssagCallback :: Lens' SettingsSearchApplicationsGet (Maybe Text)
ssagCallback
= lens _ssagCallback (\ s a -> s{_ssagCallback = a})
instance GoogleRequest SettingsSearchApplicationsGet
where
type Rs SettingsSearchApplicationsGet =
SearchApplication
type Scopes SettingsSearchApplicationsGet =
'["https://www.googleapis.com/auth/cloud_search",
"https://www.googleapis.com/auth/cloud_search.settings",
"https://www.googleapis.com/auth/cloud_search.settings.query"]
requestClient SettingsSearchApplicationsGet'{..}
= go _ssagName _ssagXgafv _ssagUploadProtocol
_ssagAccessToken
_ssagUploadType
_ssagDebugOptionsEnableDebugging
_ssagCallback
(Just AltJSON)
cloudSearchService
where go
= buildClient
(Proxy ::
Proxy SettingsSearchApplicationsGetResource)
mempty