WriteControl
Обеспечивает контроль над выполнением запросов на запись. Если не указано, побеждает последняя запись.
JSON-представление |
---|
{
// Union field control can be only one of the following:
"requiredRevisionId": string
// End of list of possible types for union field control .
} |
Поля |
---|
Полевой control Союза. Определяет ревизию метки для записи и то, как должен вести себя запрос, если эта редакция не является текущей ревизией метки. control может быть только одним из следующих: |
requiredRevisionId | string [revisionId][google.apps.drive.labels.v1.Label.revision_id] метки, к которой будет применен запрос на запись. Если это не последняя версия метки, запрос не будет обработан и вернет ошибку 400 Bad Request. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-13 UTC.
[null,null,["Последнее обновление: 2024-11-13 UTC."],[[["Provides control over how write requests to the label are executed, defaulting to \"last write wins\" if not specified."],["Uses JSON representation to define the write control, focusing on the `control` field."],["Offers the `requiredRevisionId` field within the `control` field to ensure writes are applied to a specific revision of the label, preventing accidental overwrites."],["If `requiredRevisionId` doesn't match the latest revision, the write request will be rejected with a 400 Bad Request error."]]],["The provided content defines how to control write requests for a label, defaulting to a \"last write wins\" approach. It uses a `control` union field, specifically the `requiredRevisionId`, to manage this. The `requiredRevisionId` field is a string representing the label's revision. If a write request targets a non-latest revision ID, the request will fail with a 400 error, ensuring only changes to the current revision are applied.\n"]]