{-# 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.Update
(
SpreadsheetsValuesUpdateResource
, spreadsheetsValuesUpdate
, SpreadsheetsValuesUpdate
, svuXgafv
, svuUploadProtocol
, svuAccessToken
, svuSpreadsheetId
, svuUploadType
, svuValueInputOption
, svuPayload
, svuRange
, svuIncludeValuesInResponse
, svuResponseDateTimeRenderOption
, svuCallback
, svuResponseValueRenderOption
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsValuesUpdateResource =
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"values" :>
Capture "range" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "valueInputOption" Text :>
QueryParam "includeValuesInResponse" Bool :>
QueryParam "responseDateTimeRenderOption" Text :>
QueryParam "callback" Text :>
QueryParam "responseValueRenderOption" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ValueRange :>
Put '[JSON] UpdateValuesResponse
data SpreadsheetsValuesUpdate = SpreadsheetsValuesUpdate'
{ _svuXgafv :: !(Maybe Xgafv)
, _svuUploadProtocol :: !(Maybe Text)
, _svuAccessToken :: !(Maybe Text)
, _svuSpreadsheetId :: !Text
, _svuUploadType :: !(Maybe Text)
, _svuValueInputOption :: !(Maybe Text)
, _svuPayload :: !ValueRange
, _svuRange :: !Text
, _svuIncludeValuesInResponse :: !(Maybe Bool)
, _svuResponseDateTimeRenderOption :: !(Maybe Text)
, _svuCallback :: !(Maybe Text)
, _svuResponseValueRenderOption :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsValuesUpdate
:: Text
-> ValueRange
-> Text
-> SpreadsheetsValuesUpdate
spreadsheetsValuesUpdate pSvuSpreadsheetId_ pSvuPayload_ pSvuRange_ =
SpreadsheetsValuesUpdate'
{ _svuXgafv = Nothing
, _svuUploadProtocol = Nothing
, _svuAccessToken = Nothing
, _svuSpreadsheetId = pSvuSpreadsheetId_
, _svuUploadType = Nothing
, _svuValueInputOption = Nothing
, _svuPayload = pSvuPayload_
, _svuRange = pSvuRange_
, _svuIncludeValuesInResponse = Nothing
, _svuResponseDateTimeRenderOption = Nothing
, _svuCallback = Nothing
, _svuResponseValueRenderOption = Nothing
}
svuXgafv :: Lens' SpreadsheetsValuesUpdate (Maybe Xgafv)
svuXgafv = lens _svuXgafv (\ s a -> s{_svuXgafv = a})
svuUploadProtocol :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
svuUploadProtocol
= lens _svuUploadProtocol
(\ s a -> s{_svuUploadProtocol = a})
svuAccessToken :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
svuAccessToken
= lens _svuAccessToken
(\ s a -> s{_svuAccessToken = a})
svuSpreadsheetId :: Lens' SpreadsheetsValuesUpdate Text
svuSpreadsheetId
= lens _svuSpreadsheetId
(\ s a -> s{_svuSpreadsheetId = a})
svuUploadType :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
svuUploadType
= lens _svuUploadType
(\ s a -> s{_svuUploadType = a})
svuValueInputOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
svuValueInputOption
= lens _svuValueInputOption
(\ s a -> s{_svuValueInputOption = a})
svuPayload :: Lens' SpreadsheetsValuesUpdate ValueRange
svuPayload
= lens _svuPayload (\ s a -> s{_svuPayload = a})
svuRange :: Lens' SpreadsheetsValuesUpdate Text
svuRange = lens _svuRange (\ s a -> s{_svuRange = a})
svuIncludeValuesInResponse :: Lens' SpreadsheetsValuesUpdate (Maybe Bool)
svuIncludeValuesInResponse
= lens _svuIncludeValuesInResponse
(\ s a -> s{_svuIncludeValuesInResponse = a})
svuResponseDateTimeRenderOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
svuResponseDateTimeRenderOption
= lens _svuResponseDateTimeRenderOption
(\ s a -> s{_svuResponseDateTimeRenderOption = a})
svuCallback :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
svuCallback
= lens _svuCallback (\ s a -> s{_svuCallback = a})
svuResponseValueRenderOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
svuResponseValueRenderOption
= lens _svuResponseValueRenderOption
(\ s a -> s{_svuResponseValueRenderOption = a})
instance GoogleRequest SpreadsheetsValuesUpdate where
type Rs SpreadsheetsValuesUpdate =
UpdateValuesResponse
type Scopes SpreadsheetsValuesUpdate =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
requestClient SpreadsheetsValuesUpdate'{..}
= go _svuSpreadsheetId _svuRange _svuXgafv
_svuUploadProtocol
_svuAccessToken
_svuUploadType
_svuValueInputOption
_svuIncludeValuesInResponse
_svuResponseDateTimeRenderOption
_svuCallback
_svuResponseValueRenderOption
(Just AltJSON)
_svuPayload
sheetsService
where go
= buildClient
(Proxy :: Proxy SpreadsheetsValuesUpdateResource)
mempty