{-# 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.BatchGetByDataFilter
(
SpreadsheetsValuesBatchGetByDataFilterResource
, spreadsheetsValuesBatchGetByDataFilter
, SpreadsheetsValuesBatchGetByDataFilter
, svbgbdfXgafv
, svbgbdfUploadProtocol
, svbgbdfAccessToken
, svbgbdfSpreadsheetId
, svbgbdfUploadType
, svbgbdfPayload
, svbgbdfCallback
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsValuesBatchGetByDataFilterResource =
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"values:batchGetByDataFilter" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] BatchGetValuesByDataFilterRequest :>
Post '[JSON] BatchGetValuesByDataFilterResponse
data SpreadsheetsValuesBatchGetByDataFilter = SpreadsheetsValuesBatchGetByDataFilter'
{ _svbgbdfXgafv :: !(Maybe Xgafv)
, _svbgbdfUploadProtocol :: !(Maybe Text)
, _svbgbdfAccessToken :: !(Maybe Text)
, _svbgbdfSpreadsheetId :: !Text
, _svbgbdfUploadType :: !(Maybe Text)
, _svbgbdfPayload :: !BatchGetValuesByDataFilterRequest
, _svbgbdfCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsValuesBatchGetByDataFilter
:: Text
-> BatchGetValuesByDataFilterRequest
-> SpreadsheetsValuesBatchGetByDataFilter
spreadsheetsValuesBatchGetByDataFilter pSvbgbdfSpreadsheetId_ pSvbgbdfPayload_ =
SpreadsheetsValuesBatchGetByDataFilter'
{ _svbgbdfXgafv = Nothing
, _svbgbdfUploadProtocol = Nothing
, _svbgbdfAccessToken = Nothing
, _svbgbdfSpreadsheetId = pSvbgbdfSpreadsheetId_
, _svbgbdfUploadType = Nothing
, _svbgbdfPayload = pSvbgbdfPayload_
, _svbgbdfCallback = Nothing
}
svbgbdfXgafv :: Lens' SpreadsheetsValuesBatchGetByDataFilter (Maybe Xgafv)
svbgbdfXgafv
= lens _svbgbdfXgafv (\ s a -> s{_svbgbdfXgafv = a})
svbgbdfUploadProtocol :: Lens' SpreadsheetsValuesBatchGetByDataFilter (Maybe Text)
svbgbdfUploadProtocol
= lens _svbgbdfUploadProtocol
(\ s a -> s{_svbgbdfUploadProtocol = a})
svbgbdfAccessToken :: Lens' SpreadsheetsValuesBatchGetByDataFilter (Maybe Text)
svbgbdfAccessToken
= lens _svbgbdfAccessToken
(\ s a -> s{_svbgbdfAccessToken = a})
svbgbdfSpreadsheetId :: Lens' SpreadsheetsValuesBatchGetByDataFilter Text
svbgbdfSpreadsheetId
= lens _svbgbdfSpreadsheetId
(\ s a -> s{_svbgbdfSpreadsheetId = a})
svbgbdfUploadType :: Lens' SpreadsheetsValuesBatchGetByDataFilter (Maybe Text)
svbgbdfUploadType
= lens _svbgbdfUploadType
(\ s a -> s{_svbgbdfUploadType = a})
svbgbdfPayload :: Lens' SpreadsheetsValuesBatchGetByDataFilter BatchGetValuesByDataFilterRequest
svbgbdfPayload
= lens _svbgbdfPayload
(\ s a -> s{_svbgbdfPayload = a})
svbgbdfCallback :: Lens' SpreadsheetsValuesBatchGetByDataFilter (Maybe Text)
svbgbdfCallback
= lens _svbgbdfCallback
(\ s a -> s{_svbgbdfCallback = a})
instance GoogleRequest
SpreadsheetsValuesBatchGetByDataFilter where
type Rs SpreadsheetsValuesBatchGetByDataFilter =
BatchGetValuesByDataFilterResponse
type Scopes SpreadsheetsValuesBatchGetByDataFilter =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
requestClient
SpreadsheetsValuesBatchGetByDataFilter'{..}
= go _svbgbdfSpreadsheetId _svbgbdfXgafv
_svbgbdfUploadProtocol
_svbgbdfAccessToken
_svbgbdfUploadType
_svbgbdfCallback
(Just AltJSON)
_svbgbdfPayload
sheetsService
where go
= buildClient
(Proxy ::
Proxy SpreadsheetsValuesBatchGetByDataFilterResource)
mempty