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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]