WriteControl
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Bietet Kontrolle darüber, wie Schreibanfragen ausgeführt werden. Wenn nichts angegeben ist, wird der letzte Schreibvorgang ausgeführt.
JSON-Darstellung |
{
// Union field control can be only one of the following:
"requiredRevisionId": string
// End of list of possible types for union field control .
} |
Felder |
Union-Feld control . Bestimmt die Revision des Labels, in die geschrieben werden soll, und wie sich die Anfrage verhalten soll, wenn diese Revision nicht die aktuelle Revision des Labels ist. Für control ist nur einer der folgenden Werte zulässig: |
requiredRevisionId |
string
Die Revisions-ID des Labels, auf das die Schreibanfrage angewendet wird. Wenn es sich nicht um die aktuelle Version des Labels handelt, wird die Anfrage nicht verarbeitet und es wird der Fehler „400 Bad Request“ zurückgegeben.
|
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-05 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-08-05 (UTC)."],[],[],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 isn't the current revision of the label. `control` can be only one of the following: ||\n| `requiredRevisionId` | `string` The revision ID of the label that the write request will be applied to. If this isn't the latest revision of the label, the request will not be processed and will return a 400 Bad Request error. |"]]