{-# 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.Reset
(
SettingsSearchApplicationsResetResource
, settingsSearchApplicationsReset
, SettingsSearchApplicationsReset
, ssarXgafv
, ssarUploadProtocol
, ssarAccessToken
, ssarUploadType
, ssarPayload
, ssarName
, ssarCallback
) where
import Network.Google.CloudSearch.Types
import Network.Google.Prelude
type SettingsSearchApplicationsResetResource =
"v1" :>
"settings" :>
CaptureMode "name" "reset" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ResetSearchApplicationRequest :>
Post '[JSON] Operation
data SettingsSearchApplicationsReset = SettingsSearchApplicationsReset'
{ _ssarXgafv :: !(Maybe Xgafv)
, _ssarUploadProtocol :: !(Maybe Text)
, _ssarAccessToken :: !(Maybe Text)
, _ssarUploadType :: !(Maybe Text)
, _ssarPayload :: !ResetSearchApplicationRequest
, _ssarName :: !Text
, _ssarCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
settingsSearchApplicationsReset
:: ResetSearchApplicationRequest
-> Text
-> SettingsSearchApplicationsReset
settingsSearchApplicationsReset pSsarPayload_ pSsarName_ =
SettingsSearchApplicationsReset'
{ _ssarXgafv = Nothing
, _ssarUploadProtocol = Nothing
, _ssarAccessToken = Nothing
, _ssarUploadType = Nothing
, _ssarPayload = pSsarPayload_
, _ssarName = pSsarName_
, _ssarCallback = Nothing
}
ssarXgafv :: Lens' SettingsSearchApplicationsReset (Maybe Xgafv)
ssarXgafv
= lens _ssarXgafv (\ s a -> s{_ssarXgafv = a})
ssarUploadProtocol :: Lens' SettingsSearchApplicationsReset (Maybe Text)
ssarUploadProtocol
= lens _ssarUploadProtocol
(\ s a -> s{_ssarUploadProtocol = a})
ssarAccessToken :: Lens' SettingsSearchApplicationsReset (Maybe Text)
ssarAccessToken
= lens _ssarAccessToken
(\ s a -> s{_ssarAccessToken = a})
ssarUploadType :: Lens' SettingsSearchApplicationsReset (Maybe Text)
ssarUploadType
= lens _ssarUploadType
(\ s a -> s{_ssarUploadType = a})
ssarPayload :: Lens' SettingsSearchApplicationsReset ResetSearchApplicationRequest
ssarPayload
= lens _ssarPayload (\ s a -> s{_ssarPayload = a})
ssarName :: Lens' SettingsSearchApplicationsReset Text
ssarName = lens _ssarName (\ s a -> s{_ssarName = a})
ssarCallback :: Lens' SettingsSearchApplicationsReset (Maybe Text)
ssarCallback
= lens _ssarCallback (\ s a -> s{_ssarCallback = a})
instance GoogleRequest
SettingsSearchApplicationsReset where
type Rs SettingsSearchApplicationsReset = Operation
type Scopes SettingsSearchApplicationsReset =
'["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 SettingsSearchApplicationsReset'{..}
= go _ssarName _ssarXgafv _ssarUploadProtocol
_ssarAccessToken
_ssarUploadType
_ssarCallback
(Just AltJSON)
_ssarPayload
cloudSearchService
where go
= buildClient
(Proxy ::
Proxy SettingsSearchApplicationsResetResource)
mempty