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
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-10-15 UTC
[null,null,["อัปเดตล่าสุด 2024-10-15 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."]]],[]]