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 |
Network.Google.Resource.Docs.Documents.BatchUpdate
Description
Applies one or more updates to the document. 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. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies, the reply to the third request, and another empty reply, in that order. Because other users may be editing the document, the document might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the document should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.
See: Google Docs API Reference for docs.documents.batchUpdate
.
Synopsis
- type DocumentsBatchUpdateResource = "v1" :> ("documents" :> (CaptureMode "documentId" "batchUpdate" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchUpdateDocumentRequest :> Post '[JSON] BatchUpdateDocumentResponse)))))))))
- documentsBatchUpdate :: Text -> BatchUpdateDocumentRequest -> DocumentsBatchUpdate
- data DocumentsBatchUpdate
- dbuXgafv :: Lens' DocumentsBatchUpdate (Maybe Xgafv)
- dbuDocumentId :: Lens' DocumentsBatchUpdate Text
- dbuUploadProtocol :: Lens' DocumentsBatchUpdate (Maybe Text)
- dbuAccessToken :: Lens' DocumentsBatchUpdate (Maybe Text)
- dbuUploadType :: Lens' DocumentsBatchUpdate (Maybe Text)
- dbuPayload :: Lens' DocumentsBatchUpdate BatchUpdateDocumentRequest
- dbuCallback :: Lens' DocumentsBatchUpdate (Maybe Text)
REST Resource
type DocumentsBatchUpdateResource = "v1" :> ("documents" :> (CaptureMode "documentId" "batchUpdate" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchUpdateDocumentRequest :> Post '[JSON] BatchUpdateDocumentResponse))))))))) Source #
A resource alias for docs.documents.batchUpdate
method which the
DocumentsBatchUpdate
request conforms to.
Creating a Request
Creates a value of DocumentsBatchUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DocumentsBatchUpdate Source #
Applies one or more updates to the document. 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. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns information. The response would have two empty replies, the reply to the third request, and another empty reply, in that order. Because other users may be editing the document, the document might not exactly reflect your changes: your changes may be altered with respect to collaborator changes. If there are no collaborators, the document should reflect your changes. In any case, the updates in your request are guaranteed to be applied together atomically.
See: documentsBatchUpdate
smart constructor.
Instances
Request Lenses
dbuDocumentId :: Lens' DocumentsBatchUpdate Text Source #
The ID of the document to update.
dbuUploadProtocol :: Lens' DocumentsBatchUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
dbuAccessToken :: Lens' DocumentsBatchUpdate (Maybe Text) Source #
OAuth access token.
dbuUploadType :: Lens' DocumentsBatchUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
dbuPayload :: Lens' DocumentsBatchUpdate BatchUpdateDocumentRequest Source #
Multipart request metadata.
dbuCallback :: Lens' DocumentsBatchUpdate (Maybe Text) Source #
JSONP