WriteControl
Provides control over how write requests are executed. When not specified, the last write wins.
JSON representation |
{
// Union field control can be only one of the following:
"requiredRevisionId": string
// End of list of possible types for union field control .
} |
Fields |
Union field control . Determines the revision of the label to write to and how the request should behave if that revision is not the current revision of the label. control can be only one of the following: |
requiredRevisionId |
string
The [revisionId][google.apps.drive.labels.v1.Label.revision_id] of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.
[null,null,["Last updated 2024-09-04 UTC."],[[["This documentation describes how to control write request behavior for Google Drive labels using JSON."],["You can specify a `requiredRevisionId` to ensure your write request only applies to a specific revision of the label."],["If `requiredRevisionId` doesn't match the latest label revision, the request will be rejected with a 400 Bad Request error."],["When no control is specified, the last write operation will be the one that is applied (\"last write wins\")."]]],[]]