{-# 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.DeleteSchema
(
IndexingDatasourcesDeleteSchemaResource
, indexingDatasourcesDeleteSchema
, IndexingDatasourcesDeleteSchema
, iddsXgafv
, iddsUploadProtocol
, iddsAccessToken
, iddsUploadType
, iddsName
, iddsDebugOptionsEnableDebugging
, iddsCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type IndexingDatasourcesDeleteSchemaResource =
"v1" :>
"indexing" :>
Capture "name" Text :>
"schema" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "debugOptions.enableDebugging" Bool :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data IndexingDatasourcesDeleteSchema = IndexingDatasourcesDeleteSchema'
{ _iddsXgafv :: !(Maybe Xgafv)
, _iddsUploadProtocol :: !(Maybe Text)
, _iddsAccessToken :: !(Maybe Text)
, _iddsUploadType :: !(Maybe Text)
, _iddsName :: !Text
, _iddsDebugOptionsEnableDebugging :: !(Maybe Bool)
, _iddsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
indexingDatasourcesDeleteSchema
:: Text
-> IndexingDatasourcesDeleteSchema
indexingDatasourcesDeleteSchema pIddsName_ =
IndexingDatasourcesDeleteSchema'
{ _iddsXgafv = Nothing
, _iddsUploadProtocol = Nothing
, _iddsAccessToken = Nothing
, _iddsUploadType = Nothing
, _iddsName = pIddsName_
, _iddsDebugOptionsEnableDebugging = Nothing
, _iddsCallback = Nothing
}
iddsXgafv :: Lens' IndexingDatasourcesDeleteSchema (Maybe Xgafv)
iddsXgafv
= lens _iddsXgafv (\ s a -> s{_iddsXgafv = a})
iddsUploadProtocol :: Lens' IndexingDatasourcesDeleteSchema (Maybe Text)
iddsUploadProtocol
= lens _iddsUploadProtocol
(\ s a -> s{_iddsUploadProtocol = a})
iddsAccessToken :: Lens' IndexingDatasourcesDeleteSchema (Maybe Text)
iddsAccessToken
= lens _iddsAccessToken
(\ s a -> s{_iddsAccessToken = a})
iddsUploadType :: Lens' IndexingDatasourcesDeleteSchema (Maybe Text)
iddsUploadType
= lens _iddsUploadType
(\ s a -> s{_iddsUploadType = a})
iddsName :: Lens' IndexingDatasourcesDeleteSchema Text
iddsName = lens _iddsName (\ s a -> s{_iddsName = a})
iddsDebugOptionsEnableDebugging :: Lens' IndexingDatasourcesDeleteSchema (Maybe Bool)
iddsDebugOptionsEnableDebugging
= lens _iddsDebugOptionsEnableDebugging
(\ s a -> s{_iddsDebugOptionsEnableDebugging = a})
iddsCallback :: Lens' IndexingDatasourcesDeleteSchema (Maybe Text)
iddsCallback
= lens _iddsCallback (\ s a -> s{_iddsCallback = a})
instance GoogleRequest
IndexingDatasourcesDeleteSchema where
type Rs IndexingDatasourcesDeleteSchema = Operation
type Scopes IndexingDatasourcesDeleteSchema =
'["https://www.googleapis.com/auth/cloud_search",
"https://www.googleapis.com/auth/cloud_search.settings",
"https://www.googleapis.com/auth/cloud_search.settings.indexing"]
requestClient IndexingDatasourcesDeleteSchema'{..}
= go _iddsName _iddsXgafv _iddsUploadProtocol
_iddsAccessToken
_iddsUploadType
_iddsDebugOptionsEnableDebugging
_iddsCallback
(Just AltJSON)
cloudSearchService
where go
= buildClient
(Proxy ::
Proxy IndexingDatasourcesDeleteSchemaResource)
mempty