Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.
See: Google Sheets API Reference for sheets.spreadsheets.values.update
.
Synopsis
- 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)))))))))))))))
- spreadsheetsValuesUpdate :: Text -> ValueRange -> Text -> SpreadsheetsValuesUpdate
- data SpreadsheetsValuesUpdate
- svuXgafv :: Lens' SpreadsheetsValuesUpdate (Maybe Xgafv)
- svuUploadProtocol :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
- svuAccessToken :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
- svuSpreadsheetId :: Lens' SpreadsheetsValuesUpdate Text
- svuUploadType :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
- svuValueInputOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
- svuPayload :: Lens' SpreadsheetsValuesUpdate ValueRange
- svuRange :: Lens' SpreadsheetsValuesUpdate Text
- svuIncludeValuesInResponse :: Lens' SpreadsheetsValuesUpdate (Maybe Bool)
- svuResponseDateTimeRenderOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
- svuCallback :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
- svuResponseValueRenderOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text)
REST Resource
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))))))))))))))) Source #
A resource alias for sheets.spreadsheets.values.update
method which the
SpreadsheetsValuesUpdate
request conforms to.
Creating a Request
spreadsheetsValuesUpdate Source #
Creates a value of SpreadsheetsValuesUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpreadsheetsValuesUpdate Source #
Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.
See: spreadsheetsValuesUpdate
smart constructor.
Instances
Request Lenses
svuUploadProtocol :: Lens' SpreadsheetsValuesUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
svuAccessToken :: Lens' SpreadsheetsValuesUpdate (Maybe Text) Source #
OAuth access token.
svuSpreadsheetId :: Lens' SpreadsheetsValuesUpdate Text Source #
The ID of the spreadsheet to update.
svuUploadType :: Lens' SpreadsheetsValuesUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
svuValueInputOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text) Source #
How the input data should be interpreted.
svuPayload :: Lens' SpreadsheetsValuesUpdate ValueRange Source #
Multipart request metadata.
svuIncludeValuesInResponse :: Lens' SpreadsheetsValuesUpdate (Maybe Bool) Source #
Determines if the update response should include the values of the cells that were updated. By default, responses do not include the updated values. If the range to write was larger than than the range actually written, the response will include all values in the requested range (excluding trailing empty rows and columns).
svuResponseDateTimeRenderOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text) Source #
Determines how dates, times, and durations in the response should be rendered. This is ignored if response_value_render_option is FORMATTED_VALUE. The default dateTime render option is DateTimeRenderOption.SERIAL_NUMBER.
svuCallback :: Lens' SpreadsheetsValuesUpdate (Maybe Text) Source #
JSONP
svuResponseValueRenderOption :: Lens' SpreadsheetsValuesUpdate (Maybe Text) Source #
Determines how values in the response should be rendered. The default render option is ValueRenderOption.FORMATTED_VALUE.