{-# 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.DeleteQueueItems
(
IndexingDatasourcesItemsDeleteQueueItemsResource
, indexingDatasourcesItemsDeleteQueueItems
, IndexingDatasourcesItemsDeleteQueueItems
, ididqiXgafv
, ididqiUploadProtocol
, ididqiAccessToken
, ididqiUploadType
, ididqiPayload
, ididqiName
, ididqiCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type IndexingDatasourcesItemsDeleteQueueItemsResource
=
"v1" :>
"indexing" :>
Capture "name" Text :>
"items:deleteQueueItems" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] DeleteQueueItemsRequest :>
Post '[JSON] Operation
data IndexingDatasourcesItemsDeleteQueueItems = IndexingDatasourcesItemsDeleteQueueItems'
{ _ididqiXgafv :: !(Maybe Xgafv)
, _ididqiUploadProtocol :: !(Maybe Text)
, _ididqiAccessToken :: !(Maybe Text)
, _ididqiUploadType :: !(Maybe Text)
, _ididqiPayload :: !DeleteQueueItemsRequest
, _ididqiName :: !Text
, _ididqiCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
indexingDatasourcesItemsDeleteQueueItems
:: DeleteQueueItemsRequest
-> Text
-> IndexingDatasourcesItemsDeleteQueueItems
indexingDatasourcesItemsDeleteQueueItems pIdidqiPayload_ pIdidqiName_ =
IndexingDatasourcesItemsDeleteQueueItems'
{ _ididqiXgafv = Nothing
, _ididqiUploadProtocol = Nothing
, _ididqiAccessToken = Nothing
, _ididqiUploadType = Nothing
, _ididqiPayload = pIdidqiPayload_
, _ididqiName = pIdidqiName_
, _ididqiCallback = Nothing
}
ididqiXgafv :: Lens' IndexingDatasourcesItemsDeleteQueueItems (Maybe Xgafv)
ididqiXgafv
= lens _ididqiXgafv (\ s a -> s{_ididqiXgafv = a})
ididqiUploadProtocol :: Lens' IndexingDatasourcesItemsDeleteQueueItems (Maybe Text)
ididqiUploadProtocol
= lens _ididqiUploadProtocol
(\ s a -> s{_ididqiUploadProtocol = a})
ididqiAccessToken :: Lens' IndexingDatasourcesItemsDeleteQueueItems (Maybe Text)
ididqiAccessToken
= lens _ididqiAccessToken
(\ s a -> s{_ididqiAccessToken = a})
ididqiUploadType :: Lens' IndexingDatasourcesItemsDeleteQueueItems (Maybe Text)
ididqiUploadType
= lens _ididqiUploadType
(\ s a -> s{_ididqiUploadType = a})
ididqiPayload :: Lens' IndexingDatasourcesItemsDeleteQueueItems DeleteQueueItemsRequest
ididqiPayload
= lens _ididqiPayload
(\ s a -> s{_ididqiPayload = a})
ididqiName :: Lens' IndexingDatasourcesItemsDeleteQueueItems Text
ididqiName
= lens _ididqiName (\ s a -> s{_ididqiName = a})
ididqiCallback :: Lens' IndexingDatasourcesItemsDeleteQueueItems (Maybe Text)
ididqiCallback
= lens _ididqiCallback
(\ s a -> s{_ididqiCallback = a})
instance GoogleRequest
IndexingDatasourcesItemsDeleteQueueItems where
type Rs IndexingDatasourcesItemsDeleteQueueItems =
Operation
type Scopes IndexingDatasourcesItemsDeleteQueueItems
=
'["https://www.googleapis.com/auth/cloud_search",
"https://www.googleapis.com/auth/cloud_search.indexing"]
requestClient
IndexingDatasourcesItemsDeleteQueueItems'{..}
= go _ididqiName _ididqiXgafv _ididqiUploadProtocol
_ididqiAccessToken
_ididqiUploadType
_ididqiCallback
(Just AltJSON)
_ididqiPayload
cloudSearchService
where go
= buildClient
(Proxy ::
Proxy
IndexingDatasourcesItemsDeleteQueueItemsResource)
mempty