{-# 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.Clear
(
SpreadsheetsValuesClearResource
, spreadsheetsValuesClear
, SpreadsheetsValuesClear
, svcXgafv
, svcUploadProtocol
, svcAccessToken
, svcSpreadsheetId
, svcUploadType
, svcPayload
, svcRange
, svcCallback
) where
import Network.Google.Prelude
import Network.Google.Sheets.Types
type SpreadsheetsValuesClearResource =
"v4" :>
"spreadsheets" :>
Capture "spreadsheetId" Text :>
"values" :>
CaptureMode "range" "clear" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ClearValuesRequest :>
Post '[JSON] ClearValuesResponse
data SpreadsheetsValuesClear = SpreadsheetsValuesClear'
{ _svcXgafv :: !(Maybe Xgafv)
, _svcUploadProtocol :: !(Maybe Text)
, _svcAccessToken :: !(Maybe Text)
, _svcSpreadsheetId :: !Text
, _svcUploadType :: !(Maybe Text)
, _svcPayload :: !ClearValuesRequest
, _svcRange :: !Text
, _svcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
spreadsheetsValuesClear
:: Text
-> ClearValuesRequest
-> Text
-> SpreadsheetsValuesClear
spreadsheetsValuesClear pSvcSpreadsheetId_ pSvcPayload_ pSvcRange_ =
SpreadsheetsValuesClear'
{ _svcXgafv = Nothing
, _svcUploadProtocol = Nothing
, _svcAccessToken = Nothing
, _svcSpreadsheetId = pSvcSpreadsheetId_
, _svcUploadType = Nothing
, _svcPayload = pSvcPayload_
, _svcRange = pSvcRange_
, _svcCallback = Nothing
}
svcXgafv :: Lens' SpreadsheetsValuesClear (Maybe Xgafv)
svcXgafv = lens _svcXgafv (\ s a -> s{_svcXgafv = a})
svcUploadProtocol :: Lens' SpreadsheetsValuesClear (Maybe Text)
svcUploadProtocol
= lens _svcUploadProtocol
(\ s a -> s{_svcUploadProtocol = a})
svcAccessToken :: Lens' SpreadsheetsValuesClear (Maybe Text)
svcAccessToken
= lens _svcAccessToken
(\ s a -> s{_svcAccessToken = a})
svcSpreadsheetId :: Lens' SpreadsheetsValuesClear Text
svcSpreadsheetId
= lens _svcSpreadsheetId
(\ s a -> s{_svcSpreadsheetId = a})
svcUploadType :: Lens' SpreadsheetsValuesClear (Maybe Text)
svcUploadType
= lens _svcUploadType
(\ s a -> s{_svcUploadType = a})
svcPayload :: Lens' SpreadsheetsValuesClear ClearValuesRequest
svcPayload
= lens _svcPayload (\ s a -> s{_svcPayload = a})
svcRange :: Lens' SpreadsheetsValuesClear Text
svcRange = lens _svcRange (\ s a -> s{_svcRange = a})
svcCallback :: Lens' SpreadsheetsValuesClear (Maybe Text)
svcCallback
= lens _svcCallback (\ s a -> s{_svcCallback = a})
instance GoogleRequest SpreadsheetsValuesClear where
type Rs SpreadsheetsValuesClear = ClearValuesResponse
type Scopes SpreadsheetsValuesClear =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"]
requestClient SpreadsheetsValuesClear'{..}
= go _svcSpreadsheetId _svcRange _svcXgafv
_svcUploadProtocol
_svcAccessToken
_svcUploadType
_svcCallback
(Just AltJSON)
_svcPayload
sheetsService
where go
= buildClient
(Proxy :: Proxy SpreadsheetsValuesClearResource)
mempty