{-# 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.Query.Sources.List
(
QuerySourcesListResource
, querySourcesList
, QuerySourcesList
, qslXgafv
, qslRequestOptionsTimeZone
, qslRequestOptionsDebugOptionsEnableDebugging
, qslUploadProtocol
, qslAccessToken
, qslUploadType
, qslRequestOptionsSearchApplicationId
, qslRequestOptionsLanguageCode
, qslPageToken
, qslCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type QuerySourcesListResource =
"v1" :>
"query" :>
"sources" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "requestOptions.timeZone" Text :>
QueryParam
"requestOptions.debugOptions.enableDebugging"
Bool
:>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "requestOptions.searchApplicationId" Text
:>
QueryParam "requestOptions.languageCode" Text :>
QueryParam "pageToken" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListQuerySourcesResponse
data QuerySourcesList = QuerySourcesList'
{ _qslXgafv :: !(Maybe Xgafv)
, _qslRequestOptionsTimeZone :: !(Maybe Text)
, _qslRequestOptionsDebugOptionsEnableDebugging :: !(Maybe Bool)
, _qslUploadProtocol :: !(Maybe Text)
, _qslAccessToken :: !(Maybe Text)
, _qslUploadType :: !(Maybe Text)
, _qslRequestOptionsSearchApplicationId :: !(Maybe Text)
, _qslRequestOptionsLanguageCode :: !(Maybe Text)
, _qslPageToken :: !(Maybe Text)
, _qslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
querySourcesList
:: QuerySourcesList
querySourcesList =
QuerySourcesList'
{ _qslXgafv = Nothing
, _qslRequestOptionsTimeZone = Nothing
, _qslRequestOptionsDebugOptionsEnableDebugging = Nothing
, _qslUploadProtocol = Nothing
, _qslAccessToken = Nothing
, _qslUploadType = Nothing
, _qslRequestOptionsSearchApplicationId = Nothing
, _qslRequestOptionsLanguageCode = Nothing
, _qslPageToken = Nothing
, _qslCallback = Nothing
}
qslXgafv :: Lens' QuerySourcesList (Maybe Xgafv)
qslXgafv = lens _qslXgafv (\ s a -> s{_qslXgafv = a})
qslRequestOptionsTimeZone :: Lens' QuerySourcesList (Maybe Text)
qslRequestOptionsTimeZone
= lens _qslRequestOptionsTimeZone
(\ s a -> s{_qslRequestOptionsTimeZone = a})
qslRequestOptionsDebugOptionsEnableDebugging :: Lens' QuerySourcesList (Maybe Bool)
qslRequestOptionsDebugOptionsEnableDebugging
= lens _qslRequestOptionsDebugOptionsEnableDebugging
(\ s a ->
s{_qslRequestOptionsDebugOptionsEnableDebugging = a})
qslUploadProtocol :: Lens' QuerySourcesList (Maybe Text)
qslUploadProtocol
= lens _qslUploadProtocol
(\ s a -> s{_qslUploadProtocol = a})
qslAccessToken :: Lens' QuerySourcesList (Maybe Text)
qslAccessToken
= lens _qslAccessToken
(\ s a -> s{_qslAccessToken = a})
qslUploadType :: Lens' QuerySourcesList (Maybe Text)
qslUploadType
= lens _qslUploadType
(\ s a -> s{_qslUploadType = a})
qslRequestOptionsSearchApplicationId :: Lens' QuerySourcesList (Maybe Text)
qslRequestOptionsSearchApplicationId
= lens _qslRequestOptionsSearchApplicationId
(\ s a ->
s{_qslRequestOptionsSearchApplicationId = a})
qslRequestOptionsLanguageCode :: Lens' QuerySourcesList (Maybe Text)
qslRequestOptionsLanguageCode
= lens _qslRequestOptionsLanguageCode
(\ s a -> s{_qslRequestOptionsLanguageCode = a})
qslPageToken :: Lens' QuerySourcesList (Maybe Text)
qslPageToken
= lens _qslPageToken (\ s a -> s{_qslPageToken = a})
qslCallback :: Lens' QuerySourcesList (Maybe Text)
qslCallback
= lens _qslCallback (\ s a -> s{_qslCallback = a})
instance GoogleRequest QuerySourcesList where
type Rs QuerySourcesList = ListQuerySourcesResponse
type Scopes QuerySourcesList =
'["https://www.googleapis.com/auth/cloud_search",
"https://www.googleapis.com/auth/cloud_search.query"]
requestClient QuerySourcesList'{..}
= go _qslXgafv _qslRequestOptionsTimeZone
_qslRequestOptionsDebugOptionsEnableDebugging
_qslUploadProtocol
_qslAccessToken
_qslUploadType
_qslRequestOptionsSearchApplicationId
_qslRequestOptionsLanguageCode
_qslPageToken
_qslCallback
(Just AltJSON)
cloudSearchService
where go
= buildClient
(Proxy :: Proxy QuerySourcesListResource)
mempty