WriteControl
Consente di controllare il modo in cui vengono eseguite le richieste di scrittura. Se non specificato, prevale l'ultima scrittura.
Rappresentazione JSON |
{
// Union field control can be only one of the following:
"requiredRevisionId": string
// End of list of possible types for union field control .
} |
Campi |
Campo unione control . Determina la revisione dell'etichetta in cui scrivere e il comportamento della richiesta se non è la revisione corrente dell'etichetta. control può essere solo uno dei seguenti: |
requiredRevisionId |
string
[revisionId][google.apps.drive.labels.v1.Label.revision_id] dell'etichetta a cui verrà applicata la richiesta di scrittura. Se non si tratta dell'ultima revisione dell'etichetta, la richiesta non verrà elaborata e restituirà un errore 400 Richiesta non valida.
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-10-15 UTC.
[null,null,["Ultimo aggiornamento 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"]]