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 را برمیگرداند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-13 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-13 بهوقت ساعت هماهنگ جهانی."],[[["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"]]