{-# 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.Indexing.Datasources.Items.List
(
IndexingDatasourcesItemsListResource
, indexingDatasourcesItemsList
, IndexingDatasourcesItemsList
, idilXgafv
, idilUploadProtocol
, idilAccessToken
, idilUploadType
, idilConnectorName
, idilName
, idilBrief
, idilDebugOptionsEnableDebugging
, idilPageToken
, idilPageSize
, idilCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type IndexingDatasourcesItemsListResource =
"v1" :>
"indexing" :>
Capture "name" Text :>
"items" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "connectorName" Text :>
QueryParam "brief" Bool :>
QueryParam "debugOptions.enableDebugging" Bool :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListItemsResponse
data IndexingDatasourcesItemsList = IndexingDatasourcesItemsList'
{ _idilXgafv :: !(Maybe Xgafv)
, _idilUploadProtocol :: !(Maybe Text)
, _idilAccessToken :: !(Maybe Text)
, _idilUploadType :: !(Maybe Text)
, _idilConnectorName :: !(Maybe Text)
, _idilName :: !Text
, _idilBrief :: !(Maybe Bool)
, _idilDebugOptionsEnableDebugging :: !(Maybe Bool)
, _idilPageToken :: !(Maybe Text)
, _idilPageSize :: !(Maybe (Textual Int32))
, _idilCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
indexingDatasourcesItemsList
:: Text
-> IndexingDatasourcesItemsList
indexingDatasourcesItemsList pIdilName_ =
IndexingDatasourcesItemsList'
{ _idilXgafv = Nothing
, _idilUploadProtocol = Nothing
, _idilAccessToken = Nothing
, _idilUploadType = Nothing
, _idilConnectorName = Nothing
, _idilName = pIdilName_
, _idilBrief = Nothing
, _idilDebugOptionsEnableDebugging = Nothing
, _idilPageToken = Nothing
, _idilPageSize = Nothing
, _idilCallback = Nothing
}
idilXgafv :: Lens' IndexingDatasourcesItemsList (Maybe Xgafv)
idilXgafv
= lens _idilXgafv (\ s a -> s{_idilXgafv = a})
idilUploadProtocol :: Lens' IndexingDatasourcesItemsList (Maybe Text)
idilUploadProtocol
= lens _idilUploadProtocol
(\ s a -> s{_idilUploadProtocol = a})
idilAccessToken :: Lens' IndexingDatasourcesItemsList (Maybe Text)
idilAccessToken
= lens _idilAccessToken
(\ s a -> s{_idilAccessToken = a})
idilUploadType :: Lens' IndexingDatasourcesItemsList (Maybe Text)
idilUploadType
= lens _idilUploadType
(\ s a -> s{_idilUploadType = a})
idilConnectorName :: Lens' IndexingDatasourcesItemsList (Maybe Text)
idilConnectorName
= lens _idilConnectorName
(\ s a -> s{_idilConnectorName = a})
idilName :: Lens' IndexingDatasourcesItemsList Text
idilName = lens _idilName (\ s a -> s{_idilName = a})
idilBrief :: Lens' IndexingDatasourcesItemsList (Maybe Bool)
idilBrief
= lens _idilBrief (\ s a -> s{_idilBrief = a})
idilDebugOptionsEnableDebugging :: Lens' IndexingDatasourcesItemsList (Maybe Bool)
idilDebugOptionsEnableDebugging
= lens _idilDebugOptionsEnableDebugging
(\ s a -> s{_idilDebugOptionsEnableDebugging = a})
idilPageToken :: Lens' IndexingDatasourcesItemsList (Maybe Text)
idilPageToken
= lens _idilPageToken
(\ s a -> s{_idilPageToken = a})
idilPageSize :: Lens' IndexingDatasourcesItemsList (Maybe Int32)
idilPageSize
= lens _idilPageSize (\ s a -> s{_idilPageSize = a})
. mapping _Coerce
idilCallback :: Lens' IndexingDatasourcesItemsList (Maybe Text)
idilCallback
= lens _idilCallback (\ s a -> s{_idilCallback = a})
instance GoogleRequest IndexingDatasourcesItemsList
where
type Rs IndexingDatasourcesItemsList =
ListItemsResponse
type Scopes IndexingDatasourcesItemsList =
'["https://www.googleapis.com/auth/cloud_search",
"https://www.googleapis.com/auth/cloud_search.indexing"]
requestClient IndexingDatasourcesItemsList'{..}
= go _idilName _idilXgafv _idilUploadProtocol
_idilAccessToken
_idilUploadType
_idilConnectorName
_idilBrief
_idilDebugOptionsEnableDebugging
_idilPageToken
_idilPageSize
_idilCallback
(Just AltJSON)
cloudSearchService
where go
= buildClient
(Proxy :: Proxy IndexingDatasourcesItemsListResource)
mempty