{-# 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.Delete
(
IndexingDatasourcesItemsDeleteResource
, indexingDatasourcesItemsDelete
, IndexingDatasourcesItemsDelete
, ididXgafv
, ididUploadProtocol
, ididAccessToken
, ididMode
, ididUploadType
, ididConnectorName
, ididName
, ididVersion
, ididDebugOptionsEnableDebugging
, ididCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type IndexingDatasourcesItemsDeleteResource =
"v1" :>
"indexing" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "mode" Text :>
QueryParam "uploadType" Text :>
QueryParam "connectorName" Text :>
QueryParam "version" Bytes :>
QueryParam "debugOptions.enableDebugging" Bool :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Delete '[JSON] Operation
data IndexingDatasourcesItemsDelete = IndexingDatasourcesItemsDelete'
{ _ididXgafv :: !(Maybe Xgafv)
, _ididUploadProtocol :: !(Maybe Text)
, _ididAccessToken :: !(Maybe Text)
, _ididMode :: !(Maybe Text)
, _ididUploadType :: !(Maybe Text)
, _ididConnectorName :: !(Maybe Text)
, _ididName :: !Text
, _ididVersion :: !(Maybe Bytes)
, _ididDebugOptionsEnableDebugging :: !(Maybe Bool)
, _ididCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
indexingDatasourcesItemsDelete
:: Text
-> IndexingDatasourcesItemsDelete
indexingDatasourcesItemsDelete pIdidName_ =
IndexingDatasourcesItemsDelete'
{ _ididXgafv = Nothing
, _ididUploadProtocol = Nothing
, _ididAccessToken = Nothing
, _ididMode = Nothing
, _ididUploadType = Nothing
, _ididConnectorName = Nothing
, _ididName = pIdidName_
, _ididVersion = Nothing
, _ididDebugOptionsEnableDebugging = Nothing
, _ididCallback = Nothing
}
ididXgafv :: Lens' IndexingDatasourcesItemsDelete (Maybe Xgafv)
ididXgafv
= lens _ididXgafv (\ s a -> s{_ididXgafv = a})
ididUploadProtocol :: Lens' IndexingDatasourcesItemsDelete (Maybe Text)
ididUploadProtocol
= lens _ididUploadProtocol
(\ s a -> s{_ididUploadProtocol = a})
ididAccessToken :: Lens' IndexingDatasourcesItemsDelete (Maybe Text)
ididAccessToken
= lens _ididAccessToken
(\ s a -> s{_ididAccessToken = a})
ididMode :: Lens' IndexingDatasourcesItemsDelete (Maybe Text)
ididMode = lens _ididMode (\ s a -> s{_ididMode = a})
ididUploadType :: Lens' IndexingDatasourcesItemsDelete (Maybe Text)
ididUploadType
= lens _ididUploadType
(\ s a -> s{_ididUploadType = a})
ididConnectorName :: Lens' IndexingDatasourcesItemsDelete (Maybe Text)
ididConnectorName
= lens _ididConnectorName
(\ s a -> s{_ididConnectorName = a})
ididName :: Lens' IndexingDatasourcesItemsDelete Text
ididName = lens _ididName (\ s a -> s{_ididName = a})
ididVersion :: Lens' IndexingDatasourcesItemsDelete (Maybe ByteString)
ididVersion
= lens _ididVersion (\ s a -> s{_ididVersion = a}) .
mapping _Bytes
ididDebugOptionsEnableDebugging :: Lens' IndexingDatasourcesItemsDelete (Maybe Bool)
ididDebugOptionsEnableDebugging
= lens _ididDebugOptionsEnableDebugging
(\ s a -> s{_ididDebugOptionsEnableDebugging = a})
ididCallback :: Lens' IndexingDatasourcesItemsDelete (Maybe Text)
ididCallback
= lens _ididCallback (\ s a -> s{_ididCallback = a})
instance GoogleRequest IndexingDatasourcesItemsDelete
where
type Rs IndexingDatasourcesItemsDelete = Operation
type Scopes IndexingDatasourcesItemsDelete =
'["https://www.googleapis.com/auth/cloud_search",
"https://www.googleapis.com/auth/cloud_search.indexing"]
requestClient IndexingDatasourcesItemsDelete'{..}
= go _ididName _ididXgafv _ididUploadProtocol
_ididAccessToken
_ididMode
_ididUploadType
_ididConnectorName
_ididVersion
_ididDebugOptionsEnableDebugging
_ididCallback
(Just AltJSON)
cloudSearchService
where go
= buildClient
(Proxy ::
Proxy IndexingDatasourcesItemsDeleteResource)
mempty