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 |
Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. The replies will mirror the requests. For example, if you applied 4 updates and the 3rd one had a reply, then the response will have 2 empty replies, the actual reply, and another empty reply, in that order. Due to the collaborative nature of spreadsheets, it is not guaranteed that the spreadsheet will reflect exactly your changes after this completes, however it is guaranteed that the updates in the request will be applied together atomically. Your changes may be altered with respect to collaborator changes. If there are no collaborators, the spreadsheet should reflect your changes.
See: Google Sheets API Reference for sheets.spreadsheets.batchUpdate
.
Synopsis
- type SpreadsheetsBatchUpdateResource = "v4" :> ("spreadsheets" :> (CaptureMode "spreadsheetId" "batchUpdate" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchUpdateSpreadsheetRequest :> Post '[JSON] BatchUpdateSpreadsheetResponse)))))))))
- spreadsheetsBatchUpdate :: Text -> BatchUpdateSpreadsheetRequest -> SpreadsheetsBatchUpdate
- data SpreadsheetsBatchUpdate
- sbuXgafv :: Lens' SpreadsheetsBatchUpdate (Maybe Xgafv)
- sbuUploadProtocol :: Lens' SpreadsheetsBatchUpdate (Maybe Text)
- sbuAccessToken :: Lens' SpreadsheetsBatchUpdate (Maybe Text)
- sbuSpreadsheetId :: Lens' SpreadsheetsBatchUpdate Text
- sbuUploadType :: Lens' SpreadsheetsBatchUpdate (Maybe Text)
- sbuPayload :: Lens' SpreadsheetsBatchUpdate BatchUpdateSpreadsheetRequest
- sbuCallback :: Lens' SpreadsheetsBatchUpdate (Maybe Text)
REST Resource
type SpreadsheetsBatchUpdateResource = "v4" :> ("spreadsheets" :> (CaptureMode "spreadsheetId" "batchUpdate" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchUpdateSpreadsheetRequest :> Post '[JSON] BatchUpdateSpreadsheetResponse))))))))) Source #
A resource alias for sheets.spreadsheets.batchUpdate
method which the
SpreadsheetsBatchUpdate
request conforms to.
Creating a Request
spreadsheetsBatchUpdate Source #
Creates a value of SpreadsheetsBatchUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpreadsheetsBatchUpdate Source #
Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. The replies will mirror the requests. For example, if you applied 4 updates and the 3rd one had a reply, then the response will have 2 empty replies, the actual reply, and another empty reply, in that order. Due to the collaborative nature of spreadsheets, it is not guaranteed that the spreadsheet will reflect exactly your changes after this completes, however it is guaranteed that the updates in the request will be applied together atomically. Your changes may be altered with respect to collaborator changes. If there are no collaborators, the spreadsheet should reflect your changes.
See: spreadsheetsBatchUpdate
smart constructor.
Instances
Request Lenses
sbuUploadProtocol :: Lens' SpreadsheetsBatchUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sbuAccessToken :: Lens' SpreadsheetsBatchUpdate (Maybe Text) Source #
OAuth access token.
sbuSpreadsheetId :: Lens' SpreadsheetsBatchUpdate Text Source #
The spreadsheet to apply the updates to.
sbuUploadType :: Lens' SpreadsheetsBatchUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sbuPayload :: Lens' SpreadsheetsBatchUpdate BatchUpdateSpreadsheetRequest Source #
Multipart request metadata.
sbuCallback :: Lens' SpreadsheetsBatchUpdate (Maybe Text) Source #
JSONP