{-# 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.Append
(
SpreadsheetsValuesAppendResource
, spreadsheetsValuesAppend
, SpreadsheetsValuesAppend
, svaXgafv
, svaUploadProtocol
, svaAccessToken
, svaSpreadsheetId
, svaUploadType
, svaValueInputOption
, svaPayload
, svaInsertDataOption
, svaRange
, svaIncludeValuesInResponse
, svaResponseDateTimeRenderOption
, svaCallback
, svaResponseValueRenderOption
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsValuesAppendResource =
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"values" :>
CaptureMode "range" "append" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "valueInputOption" Text :>
QueryParam "insertDataOption" Text :>
QueryParam "includeValuesInResponse" Bool :>
QueryParam "responseDateTimeRenderOption" Text :>
QueryParam "callback" Text :>
QueryParam "responseValueRenderOption" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ValueRange :>
Post '[JSON] AppendValuesResponse
data SpreadsheetsValuesAppend = SpreadsheetsValuesAppend'
{ _svaXgafv :: !(Maybe Xgafv)
, _svaUploadProtocol :: !(Maybe Text)
, _svaAccessToken :: !(Maybe Text)
, _svaSpreadsheetId :: !Text
, _svaUploadType :: !(Maybe Text)
, _svaValueInputOption :: !(Maybe Text)
, _svaPayload :: !ValueRange
, _svaInsertDataOption :: !(Maybe Text)
, _svaRange :: !Text
, _svaIncludeValuesInResponse :: !(Maybe Bool)
, _svaResponseDateTimeRenderOption :: !(Maybe Text)
, _svaCallback :: !(Maybe Text)
, _svaResponseValueRenderOption :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsValuesAppend
:: Text
-> ValueRange
-> Text
-> SpreadsheetsValuesAppend
spreadsheetsValuesAppend pSvaSpreadsheetId_ pSvaPayload_ pSvaRange_ =
SpreadsheetsValuesAppend'
{ _svaXgafv = Nothing
, _svaUploadProtocol = Nothing
, _svaAccessToken = Nothing
, _svaSpreadsheetId = pSvaSpreadsheetId_
, _svaUploadType = Nothing
, _svaValueInputOption = Nothing
, _svaPayload = pSvaPayload_
, _svaInsertDataOption = Nothing
, _svaRange = pSvaRange_
, _svaIncludeValuesInResponse = Nothing
, _svaResponseDateTimeRenderOption = Nothing
, _svaCallback = Nothing
, _svaResponseValueRenderOption = Nothing
}
svaXgafv :: Lens' SpreadsheetsValuesAppend (Maybe Xgafv)
svaXgafv = lens _svaXgafv (\ s a -> s{_svaXgafv = a})
svaUploadProtocol :: Lens' SpreadsheetsValuesAppend (Maybe Text)
svaUploadProtocol
= lens _svaUploadProtocol
(\ s a -> s{_svaUploadProtocol = a})
svaAccessToken :: Lens' SpreadsheetsValuesAppend (Maybe Text)
svaAccessToken
= lens _svaAccessToken
(\ s a -> s{_svaAccessToken = a})
svaSpreadsheetId :: Lens' SpreadsheetsValuesAppend Text
svaSpreadsheetId
= lens _svaSpreadsheetId
(\ s a -> s{_svaSpreadsheetId = a})
svaUploadType :: Lens' SpreadsheetsValuesAppend (Maybe Text)
svaUploadType
= lens _svaUploadType
(\ s a -> s{_svaUploadType = a})
svaValueInputOption :: Lens' SpreadsheetsValuesAppend (Maybe Text)
svaValueInputOption
= lens _svaValueInputOption
(\ s a -> s{_svaValueInputOption = a})
svaPayload :: Lens' SpreadsheetsValuesAppend ValueRange
svaPayload
= lens _svaPayload (\ s a -> s{_svaPayload = a})
svaInsertDataOption :: Lens' SpreadsheetsValuesAppend (Maybe Text)
svaInsertDataOption
= lens _svaInsertDataOption
(\ s a -> s{_svaInsertDataOption = a})
svaRange :: Lens' SpreadsheetsValuesAppend Text
svaRange = lens _svaRange (\ s a -> s{_svaRange = a})
svaIncludeValuesInResponse :: Lens' SpreadsheetsValuesAppend (Maybe Bool)
svaIncludeValuesInResponse
= lens _svaIncludeValuesInResponse
(\ s a -> s{_svaIncludeValuesInResponse = a})
svaResponseDateTimeRenderOption :: Lens' SpreadsheetsValuesAppend (Maybe Text)
svaResponseDateTimeRenderOption
= lens _svaResponseDateTimeRenderOption
(\ s a -> s{_svaResponseDateTimeRenderOption = a})
svaCallback :: Lens' SpreadsheetsValuesAppend (Maybe Text)
svaCallback
= lens _svaCallback (\ s a -> s{_svaCallback = a})
svaResponseValueRenderOption :: Lens' SpreadsheetsValuesAppend (Maybe Text)
svaResponseValueRenderOption
= lens _svaResponseValueRenderOption
(\ s a -> s{_svaResponseValueRenderOption = a})
instance GoogleRequest SpreadsheetsValuesAppend where
type Rs SpreadsheetsValuesAppend =
AppendValuesResponse
type Scopes SpreadsheetsValuesAppend =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
requestClient SpreadsheetsValuesAppend'{..}
= go _svaSpreadsheetId _svaRange _svaXgafv
_svaUploadProtocol
_svaAccessToken
_svaUploadType
_svaValueInputOption
_svaInsertDataOption
_svaIncludeValuesInResponse
_svaResponseDateTimeRenderOption
_svaCallback
_svaResponseValueRenderOption
(Just AltJSON)
_svaPayload
sheetsService
where go
= buildClient
(Proxy :: Proxy SpreadsheetsValuesAppendResource)
mempty