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 "طلب سيئ".
|
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-10-15 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-10-15 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]