{-# 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.List
(
SettingsSearchApplicationsListResource
, settingsSearchApplicationsList
, SettingsSearchApplicationsList
, ssalXgafv
, ssalUploadProtocol
, ssalAccessToken
, ssalUploadType
, ssalDebugOptionsEnableDebugging
, ssalPageToken
, ssalPageSize
, ssalCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type SettingsSearchApplicationsListResource =
"v1" :>
"settings" :>
"searchapplications" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "debugOptions.enableDebugging" Bool :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListSearchApplicationsResponse
data SettingsSearchApplicationsList = SettingsSearchApplicationsList'
{ _ssalXgafv :: !(Maybe Xgafv)
, _ssalUploadProtocol :: !(Maybe Text)
, _ssalAccessToken :: !(Maybe Text)
, _ssalUploadType :: !(Maybe Text)
, _ssalDebugOptionsEnableDebugging :: !(Maybe Bool)
, _ssalPageToken :: !(Maybe Text)
, _ssalPageSize :: !(Maybe (Textual Int32))
, _ssalCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
settingsSearchApplicationsList
:: SettingsSearchApplicationsList
settingsSearchApplicationsList =
SettingsSearchApplicationsList'
{ _ssalXgafv = Nothing
, _ssalUploadProtocol = Nothing
, _ssalAccessToken = Nothing
, _ssalUploadType = Nothing
, _ssalDebugOptionsEnableDebugging = Nothing
, _ssalPageToken = Nothing
, _ssalPageSize = Nothing
, _ssalCallback = Nothing
}
ssalXgafv :: Lens' SettingsSearchApplicationsList (Maybe Xgafv)
ssalXgafv
= lens _ssalXgafv (\ s a -> s{_ssalXgafv = a})
ssalUploadProtocol :: Lens' SettingsSearchApplicationsList (Maybe Text)
ssalUploadProtocol
= lens _ssalUploadProtocol
(\ s a -> s{_ssalUploadProtocol = a})
ssalAccessToken :: Lens' SettingsSearchApplicationsList (Maybe Text)
ssalAccessToken
= lens _ssalAccessToken
(\ s a -> s{_ssalAccessToken = a})
ssalUploadType :: Lens' SettingsSearchApplicationsList (Maybe Text)
ssalUploadType
= lens _ssalUploadType
(\ s a -> s{_ssalUploadType = a})
ssalDebugOptionsEnableDebugging :: Lens' SettingsSearchApplicationsList (Maybe Bool)
ssalDebugOptionsEnableDebugging
= lens _ssalDebugOptionsEnableDebugging
(\ s a -> s{_ssalDebugOptionsEnableDebugging = a})
ssalPageToken :: Lens' SettingsSearchApplicationsList (Maybe Text)
ssalPageToken
= lens _ssalPageToken
(\ s a -> s{_ssalPageToken = a})
ssalPageSize :: Lens' SettingsSearchApplicationsList (Maybe Int32)
ssalPageSize
= lens _ssalPageSize (\ s a -> s{_ssalPageSize = a})
. mapping _Coerce
ssalCallback :: Lens' SettingsSearchApplicationsList (Maybe Text)
ssalCallback
= lens _ssalCallback (\ s a -> s{_ssalCallback = a})
instance GoogleRequest SettingsSearchApplicationsList
where
type Rs SettingsSearchApplicationsList =
ListSearchApplicationsResponse
type Scopes SettingsSearchApplicationsList =
'["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 SettingsSearchApplicationsList'{..}
= go _ssalXgafv _ssalUploadProtocol _ssalAccessToken
_ssalUploadType
_ssalDebugOptionsEnableDebugging
_ssalPageToken
_ssalPageSize
_ssalCallback
(Just AltJSON)
cloudSearchService
where go
= buildClient
(Proxy ::
Proxy SettingsSearchApplicationsListResource)
mempty