{-# 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.BatchGet
(
SpreadsheetsValuesBatchGetResource
, spreadsheetsValuesBatchGet
, SpreadsheetsValuesBatchGet
, svbgXgafv
, svbgValueRenderOption
, svbgUploadProtocol
, svbgAccessToken
, svbgSpreadsheetId
, svbgUploadType
, svbgRanges
, svbgDateTimeRenderOption
, svbgMajorDimension
, svbgCallback
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsValuesBatchGetResource =
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"values:batchGet" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "valueRenderOption" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParams "ranges" Text :>
QueryParam "dateTimeRenderOption" Text :>
QueryParam "majorDimension" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] BatchGetValuesResponse
data SpreadsheetsValuesBatchGet = SpreadsheetsValuesBatchGet'
{ _svbgXgafv :: !(Maybe Xgafv)
, _svbgValueRenderOption :: !(Maybe Text)
, _svbgUploadProtocol :: !(Maybe Text)
, _svbgAccessToken :: !(Maybe Text)
, _svbgSpreadsheetId :: !Text
, _svbgUploadType :: !(Maybe Text)
, _svbgRanges :: !(Maybe [Text])
, _svbgDateTimeRenderOption :: !(Maybe Text)
, _svbgMajorDimension :: !(Maybe Text)
, _svbgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsValuesBatchGet
:: Text
-> SpreadsheetsValuesBatchGet
spreadsheetsValuesBatchGet pSvbgSpreadsheetId_ =
SpreadsheetsValuesBatchGet'
{ _svbgXgafv = Nothing
, _svbgValueRenderOption = Nothing
, _svbgUploadProtocol = Nothing
, _svbgAccessToken = Nothing
, _svbgSpreadsheetId = pSvbgSpreadsheetId_
, _svbgUploadType = Nothing
, _svbgRanges = Nothing
, _svbgDateTimeRenderOption = Nothing
, _svbgMajorDimension = Nothing
, _svbgCallback = Nothing
}
svbgXgafv :: Lens' SpreadsheetsValuesBatchGet (Maybe Xgafv)
svbgXgafv
= lens _svbgXgafv (\ s a -> s{_svbgXgafv = a})
svbgValueRenderOption :: Lens' SpreadsheetsValuesBatchGet (Maybe Text)
svbgValueRenderOption
= lens _svbgValueRenderOption
(\ s a -> s{_svbgValueRenderOption = a})
svbgUploadProtocol :: Lens' SpreadsheetsValuesBatchGet (Maybe Text)
svbgUploadProtocol
= lens _svbgUploadProtocol
(\ s a -> s{_svbgUploadProtocol = a})
svbgAccessToken :: Lens' SpreadsheetsValuesBatchGet (Maybe Text)
svbgAccessToken
= lens _svbgAccessToken
(\ s a -> s{_svbgAccessToken = a})
svbgSpreadsheetId :: Lens' SpreadsheetsValuesBatchGet Text
svbgSpreadsheetId
= lens _svbgSpreadsheetId
(\ s a -> s{_svbgSpreadsheetId = a})
svbgUploadType :: Lens' SpreadsheetsValuesBatchGet (Maybe Text)
svbgUploadType
= lens _svbgUploadType
(\ s a -> s{_svbgUploadType = a})
svbgRanges :: Lens' SpreadsheetsValuesBatchGet [Text]
svbgRanges
= lens _svbgRanges (\ s a -> s{_svbgRanges = a}) .
_Default
. _Coerce
svbgDateTimeRenderOption :: Lens' SpreadsheetsValuesBatchGet (Maybe Text)
svbgDateTimeRenderOption
= lens _svbgDateTimeRenderOption
(\ s a -> s{_svbgDateTimeRenderOption = a})
svbgMajorDimension :: Lens' SpreadsheetsValuesBatchGet (Maybe Text)
svbgMajorDimension
= lens _svbgMajorDimension
(\ s a -> s{_svbgMajorDimension = a})
svbgCallback :: Lens' SpreadsheetsValuesBatchGet (Maybe Text)
svbgCallback
= lens _svbgCallback (\ s a -> s{_svbgCallback = a})
instance GoogleRequest SpreadsheetsValuesBatchGet
where
type Rs SpreadsheetsValuesBatchGet =
BatchGetValuesResponse
type Scopes SpreadsheetsValuesBatchGet =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"]
requestClient SpreadsheetsValuesBatchGet'{..}
= go _svbgSpreadsheetId _svbgXgafv
_svbgValueRenderOption
_svbgUploadProtocol
_svbgAccessToken
_svbgUploadType
(_svbgRanges ^. _Default)
_svbgDateTimeRenderOption
_svbgMajorDimension
_svbgCallback
(Just AltJSON)
sheetsService
where go
= buildClient
(Proxy :: Proxy SpreadsheetsValuesBatchGetResource)
mempty