{-# 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.Get
(
SpreadsheetsValuesGetResource
, spreadsheetsValuesGet
, SpreadsheetsValuesGet
, svgXgafv
, svgValueRenderOption
, svgUploadProtocol
, svgAccessToken
, svgSpreadsheetId
, svgUploadType
, svgRange
, svgDateTimeRenderOption
, svgMajorDimension
, svgCallback
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsValuesGetResource =
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"values" :>
Capture "range" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "valueRenderOption" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "dateTimeRenderOption" Text :>
QueryParam "majorDimension" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ValueRange
data SpreadsheetsValuesGet = SpreadsheetsValuesGet'
{ _svgXgafv :: !(Maybe Xgafv)
, _svgValueRenderOption :: !(Maybe Text)
, _svgUploadProtocol :: !(Maybe Text)
, _svgAccessToken :: !(Maybe Text)
, _svgSpreadsheetId :: !Text
, _svgUploadType :: !(Maybe Text)
, _svgRange :: !Text
, _svgDateTimeRenderOption :: !(Maybe Text)
, _svgMajorDimension :: !(Maybe Text)
, _svgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsValuesGet
:: Text
-> Text
-> SpreadsheetsValuesGet
spreadsheetsValuesGet pSvgSpreadsheetId_ pSvgRange_ =
SpreadsheetsValuesGet'
{ _svgXgafv = Nothing
, _svgValueRenderOption = Nothing
, _svgUploadProtocol = Nothing
, _svgAccessToken = Nothing
, _svgSpreadsheetId = pSvgSpreadsheetId_
, _svgUploadType = Nothing
, _svgRange = pSvgRange_
, _svgDateTimeRenderOption = Nothing
, _svgMajorDimension = Nothing
, _svgCallback = Nothing
}
svgXgafv :: Lens' SpreadsheetsValuesGet (Maybe Xgafv)
svgXgafv = lens _svgXgafv (\ s a -> s{_svgXgafv = a})
svgValueRenderOption :: Lens' SpreadsheetsValuesGet (Maybe Text)
svgValueRenderOption
= lens _svgValueRenderOption
(\ s a -> s{_svgValueRenderOption = a})
svgUploadProtocol :: Lens' SpreadsheetsValuesGet (Maybe Text)
svgUploadProtocol
= lens _svgUploadProtocol
(\ s a -> s{_svgUploadProtocol = a})
svgAccessToken :: Lens' SpreadsheetsValuesGet (Maybe Text)
svgAccessToken
= lens _svgAccessToken
(\ s a -> s{_svgAccessToken = a})
svgSpreadsheetId :: Lens' SpreadsheetsValuesGet Text
svgSpreadsheetId
= lens _svgSpreadsheetId
(\ s a -> s{_svgSpreadsheetId = a})
svgUploadType :: Lens' SpreadsheetsValuesGet (Maybe Text)
svgUploadType
= lens _svgUploadType
(\ s a -> s{_svgUploadType = a})
svgRange :: Lens' SpreadsheetsValuesGet Text
svgRange = lens _svgRange (\ s a -> s{_svgRange = a})
svgDateTimeRenderOption :: Lens' SpreadsheetsValuesGet (Maybe Text)
svgDateTimeRenderOption
= lens _svgDateTimeRenderOption
(\ s a -> s{_svgDateTimeRenderOption = a})
svgMajorDimension :: Lens' SpreadsheetsValuesGet (Maybe Text)
svgMajorDimension
= lens _svgMajorDimension
(\ s a -> s{_svgMajorDimension = a})
svgCallback :: Lens' SpreadsheetsValuesGet (Maybe Text)
svgCallback
= lens _svgCallback (\ s a -> s{_svgCallback = a})
instance GoogleRequest SpreadsheetsValuesGet where
type Rs SpreadsheetsValuesGet = ValueRange
type Scopes SpreadsheetsValuesGet =
'["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 SpreadsheetsValuesGet'{..}
= go _svgSpreadsheetId _svgRange _svgXgafv
_svgValueRenderOption
_svgUploadProtocol
_svgAccessToken
_svgUploadType
_svgDateTimeRenderOption
_svgMajorDimension
_svgCallback
(Just AltJSON)
sheetsService
where go
= buildClient
(Proxy :: Proxy SpreadsheetsValuesGetResource)
mempty