{-# 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.Sheets.Spreadsheets.Values.BatchClearByDataFilter
(
SpreadsheetsValuesBatchClearByDataFilterResource
, spreadsheetsValuesBatchClearByDataFilter
, SpreadsheetsValuesBatchClearByDataFilter
, svbcbdfXgafv
, svbcbdfUploadProtocol
, svbcbdfAccessToken
, svbcbdfSpreadsheetId
, svbcbdfUploadType
, svbcbdfPayload
, svbcbdfCallback
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsValuesBatchClearByDataFilterResource
=
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"values:batchClearByDataFilter" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] BatchClearValuesByDataFilterRequest
:> Post '[JSON] BatchClearValuesByDataFilterResponse
data SpreadsheetsValuesBatchClearByDataFilter = SpreadsheetsValuesBatchClearByDataFilter'
{ _svbcbdfXgafv :: !(Maybe Xgafv)
, _svbcbdfUploadProtocol :: !(Maybe Text)
, _svbcbdfAccessToken :: !(Maybe Text)
, _svbcbdfSpreadsheetId :: !Text
, _svbcbdfUploadType :: !(Maybe Text)
, _svbcbdfPayload :: !BatchClearValuesByDataFilterRequest
, _svbcbdfCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsValuesBatchClearByDataFilter
:: Text
-> BatchClearValuesByDataFilterRequest
-> SpreadsheetsValuesBatchClearByDataFilter
spreadsheetsValuesBatchClearByDataFilter pSvbcbdfSpreadsheetId_ pSvbcbdfPayload_ =
SpreadsheetsValuesBatchClearByDataFilter'
{ _svbcbdfXgafv = Nothing
, _svbcbdfUploadProtocol = Nothing
, _svbcbdfAccessToken = Nothing
, _svbcbdfSpreadsheetId = pSvbcbdfSpreadsheetId_
, _svbcbdfUploadType = Nothing
, _svbcbdfPayload = pSvbcbdfPayload_
, _svbcbdfCallback = Nothing
}
svbcbdfXgafv :: Lens' SpreadsheetsValuesBatchClearByDataFilter (Maybe Xgafv)
svbcbdfXgafv
= lens _svbcbdfXgafv (\ s a -> s{_svbcbdfXgafv = a})
svbcbdfUploadProtocol :: Lens' SpreadsheetsValuesBatchClearByDataFilter (Maybe Text)
svbcbdfUploadProtocol
= lens _svbcbdfUploadProtocol
(\ s a -> s{_svbcbdfUploadProtocol = a})
svbcbdfAccessToken :: Lens' SpreadsheetsValuesBatchClearByDataFilter (Maybe Text)
svbcbdfAccessToken
= lens _svbcbdfAccessToken
(\ s a -> s{_svbcbdfAccessToken = a})
svbcbdfSpreadsheetId :: Lens' SpreadsheetsValuesBatchClearByDataFilter Text
svbcbdfSpreadsheetId
= lens _svbcbdfSpreadsheetId
(\ s a -> s{_svbcbdfSpreadsheetId = a})
svbcbdfUploadType :: Lens' SpreadsheetsValuesBatchClearByDataFilter (Maybe Text)
svbcbdfUploadType
= lens _svbcbdfUploadType
(\ s a -> s{_svbcbdfUploadType = a})
svbcbdfPayload :: Lens' SpreadsheetsValuesBatchClearByDataFilter BatchClearValuesByDataFilterRequest
svbcbdfPayload
= lens _svbcbdfPayload
(\ s a -> s{_svbcbdfPayload = a})
svbcbdfCallback :: Lens' SpreadsheetsValuesBatchClearByDataFilter (Maybe Text)
svbcbdfCallback
= lens _svbcbdfCallback
(\ s a -> s{_svbcbdfCallback = a})
instance GoogleRequest
SpreadsheetsValuesBatchClearByDataFilter where
type Rs SpreadsheetsValuesBatchClearByDataFilter =
BatchClearValuesByDataFilterResponse
type Scopes SpreadsheetsValuesBatchClearByDataFilter
=
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
requestClient
SpreadsheetsValuesBatchClearByDataFilter'{..}
= go _svbcbdfSpreadsheetId _svbcbdfXgafv
_svbcbdfUploadProtocol
_svbcbdfAccessToken
_svbcbdfUploadType
_svbcbdfCallback
(Just AltJSON)
_svbcbdfPayload
sheetsService
where go
= buildClient
(Proxy ::
Proxy
SpreadsheetsValuesBatchClearByDataFilterResource)
mempty