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 錯誤要求」錯誤。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-11 (世界標準時間)。
[null,null,["上次更新時間:2024-10-11 (世界標準時間)。"],[[["Provides control over how write requests to the label are executed, defaulting to \"last write wins\" if unspecified."],["Uses JSON representation to define the control type, which can be a required revision ID."],["`requiredRevisionId` specifies the target revision for the write request, returning a 400 error if it's not the latest."]]],[]]