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."]]],["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"]]