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 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# WriteControl\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nProvides control over how write requests are executed. When not specified, the last write wins.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `control` can be only one of the following: \"requiredRevisionId\": string // End of list of possible types for union field `control`. } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 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: ||\n| `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. |"]]