{-# 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.Settings.SearchApplications.Delete
(
SettingsSearchApplicationsDeleteResource
, settingsSearchApplicationsDelete
, SettingsSearchApplicationsDelete
, ssadXgafv
, ssadUploadProtocol
, ssadAccessToken
, ssadUploadType
, ssadName
, ssadDebugOptionsEnableDebugging
, ssadCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type SettingsSearchApplicationsDeleteResource =
"v1" :>
"settings" :>
Capture "name" Text :>
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 SettingsSearchApplicationsDelete = SettingsSearchApplicationsDelete'
{ _ssadXgafv :: !(Maybe Xgafv)
, _ssadUploadProtocol :: !(Maybe Text)
, _ssadAccessToken :: !(Maybe Text)
, _ssadUploadType :: !(Maybe Text)
, _ssadName :: !Text
, _ssadDebugOptionsEnableDebugging :: !(Maybe Bool)
, _ssadCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
settingsSearchApplicationsDelete
:: Text
-> SettingsSearchApplicationsDelete
settingsSearchApplicationsDelete pSsadName_ =
SettingsSearchApplicationsDelete'
{ _ssadXgafv = Nothing
, _ssadUploadProtocol = Nothing
, _ssadAccessToken = Nothing
, _ssadUploadType = Nothing
, _ssadName = pSsadName_
, _ssadDebugOptionsEnableDebugging = Nothing
, _ssadCallback = Nothing
}
ssadXgafv :: Lens' SettingsSearchApplicationsDelete (Maybe Xgafv)
ssadXgafv
= lens _ssadXgafv (\ s a -> s{_ssadXgafv = a})
ssadUploadProtocol :: Lens' SettingsSearchApplicationsDelete (Maybe Text)
ssadUploadProtocol
= lens _ssadUploadProtocol
(\ s a -> s{_ssadUploadProtocol = a})
ssadAccessToken :: Lens' SettingsSearchApplicationsDelete (Maybe Text)
ssadAccessToken
= lens _ssadAccessToken
(\ s a -> s{_ssadAccessToken = a})
ssadUploadType :: Lens' SettingsSearchApplicationsDelete (Maybe Text)
ssadUploadType
= lens _ssadUploadType
(\ s a -> s{_ssadUploadType = a})
ssadName :: Lens' SettingsSearchApplicationsDelete Text
ssadName = lens _ssadName (\ s a -> s{_ssadName = a})
ssadDebugOptionsEnableDebugging :: Lens' SettingsSearchApplicationsDelete (Maybe Bool)
ssadDebugOptionsEnableDebugging
= lens _ssadDebugOptionsEnableDebugging
(\ s a -> s{_ssadDebugOptionsEnableDebugging = a})
ssadCallback :: Lens' SettingsSearchApplicationsDelete (Maybe Text)
ssadCallback
= lens _ssadCallback (\ s a -> s{_ssadCallback = a})
instance GoogleRequest
SettingsSearchApplicationsDelete where
type Rs SettingsSearchApplicationsDelete = Operation
type Scopes SettingsSearchApplicationsDelete =
'["https://www.googleapis.com/auth/cloud_search",
"https://www.googleapis.com/auth/cloud_search.settings",
"https://www.googleapis.com/auth/cloud_search.settings.query"]
requestClient SettingsSearchApplicationsDelete'{..}
= go _ssadName _ssadXgafv _ssadUploadProtocol
_ssadAccessToken
_ssadUploadType
_ssadDebugOptionsEnableDebugging
_ssadCallback
(Just AltJSON)
cloudSearchService
where go
= buildClient
(Proxy ::
Proxy SettingsSearchApplicationsDeleteResource)
mempty