{-# 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.BatchUpdateByDataFilter
(
SpreadsheetsValuesBatchUpdateByDataFilterResource
, spreadsheetsValuesBatchUpdateByDataFilter
, SpreadsheetsValuesBatchUpdateByDataFilter
, svbubdfXgafv
, svbubdfUploadProtocol
, svbubdfAccessToken
, svbubdfSpreadsheetId
, svbubdfUploadType
, svbubdfPayload
, svbubdfCallback
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsValuesBatchUpdateByDataFilterResource
=
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"values:batchUpdateByDataFilter" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] BatchUpdateValuesByDataFilterRequest
:> Post '[JSON] BatchUpdateValuesByDataFilterResponse
data SpreadsheetsValuesBatchUpdateByDataFilter = SpreadsheetsValuesBatchUpdateByDataFilter'
{ _svbubdfXgafv :: !(Maybe Xgafv)
, _svbubdfUploadProtocol :: !(Maybe Text)
, _svbubdfAccessToken :: !(Maybe Text)
, _svbubdfSpreadsheetId :: !Text
, _svbubdfUploadType :: !(Maybe Text)
, _svbubdfPayload :: !BatchUpdateValuesByDataFilterRequest
, _svbubdfCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsValuesBatchUpdateByDataFilter
:: Text
-> BatchUpdateValuesByDataFilterRequest
-> SpreadsheetsValuesBatchUpdateByDataFilter
spreadsheetsValuesBatchUpdateByDataFilter pSvbubdfSpreadsheetId_ pSvbubdfPayload_ =
SpreadsheetsValuesBatchUpdateByDataFilter'
{ _svbubdfXgafv = Nothing
, _svbubdfUploadProtocol = Nothing
, _svbubdfAccessToken = Nothing
, _svbubdfSpreadsheetId = pSvbubdfSpreadsheetId_
, _svbubdfUploadType = Nothing
, _svbubdfPayload = pSvbubdfPayload_
, _svbubdfCallback = Nothing
}
svbubdfXgafv :: Lens' SpreadsheetsValuesBatchUpdateByDataFilter (Maybe Xgafv)
svbubdfXgafv
= lens _svbubdfXgafv (\ s a -> s{_svbubdfXgafv = a})
svbubdfUploadProtocol :: Lens' SpreadsheetsValuesBatchUpdateByDataFilter (Maybe Text)
svbubdfUploadProtocol
= lens _svbubdfUploadProtocol
(\ s a -> s{_svbubdfUploadProtocol = a})
svbubdfAccessToken :: Lens' SpreadsheetsValuesBatchUpdateByDataFilter (Maybe Text)
svbubdfAccessToken
= lens _svbubdfAccessToken
(\ s a -> s{_svbubdfAccessToken = a})
svbubdfSpreadsheetId :: Lens' SpreadsheetsValuesBatchUpdateByDataFilter Text
svbubdfSpreadsheetId
= lens _svbubdfSpreadsheetId
(\ s a -> s{_svbubdfSpreadsheetId = a})
svbubdfUploadType :: Lens' SpreadsheetsValuesBatchUpdateByDataFilter (Maybe Text)
svbubdfUploadType
= lens _svbubdfUploadType
(\ s a -> s{_svbubdfUploadType = a})
svbubdfPayload :: Lens' SpreadsheetsValuesBatchUpdateByDataFilter BatchUpdateValuesByDataFilterRequest
svbubdfPayload
= lens _svbubdfPayload
(\ s a -> s{_svbubdfPayload = a})
svbubdfCallback :: Lens' SpreadsheetsValuesBatchUpdateByDataFilter (Maybe Text)
svbubdfCallback
= lens _svbubdfCallback
(\ s a -> s{_svbubdfCallback = a})
instance GoogleRequest
SpreadsheetsValuesBatchUpdateByDataFilter where
type Rs SpreadsheetsValuesBatchUpdateByDataFilter =
BatchUpdateValuesByDataFilterResponse
type Scopes SpreadsheetsValuesBatchUpdateByDataFilter
=
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
requestClient
SpreadsheetsValuesBatchUpdateByDataFilter'{..}
= go _svbubdfSpreadsheetId _svbubdfXgafv
_svbubdfUploadProtocol
_svbubdfAccessToken
_svbubdfUploadType
_svbubdfCallback
(Just AltJSON)
_svbubdfPayload
sheetsService
where go
= buildClient
(Proxy ::
Proxy
SpreadsheetsValuesBatchUpdateByDataFilterResource)
mempty