संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
लेबल, फ़ील्ड, और विकल्पों की स्थिति समय-समय पर बदलती रहती है.
इसके अलावा, लेबल के अलग-अलग वर्शन हो सकते हैं. इस डायग्राम में, लेबल के लाइफ़साइकल के बारे में बताया गया है. इसमें वर्शनिंग भी शामिल है:
तीसरी इमेज. किसी लेबल का लाइफ़साइकल
लेबल बनाएं (create())—लेबल बनाया जाता है और इसे डेटाबेस में revision_id=1 के तौर पर सेव किया जाता है. लेबल की स्थिति UNPUBLISHED_DRAFT है.
इस स्थिति में:
उपयोगकर्ता लेबल नहीं देख सकते
उपयोगकर्ता, Drive में मौजूद आइटम पर लेबल लागू नहीं कर सकते.
(ज़रूरी नहीं) किसी लेबल, फ़ील्ड या विकल्प (delta()) को अपडेट करें— हर अपडेट, पब्लिश होने से पहले भी डेटाबेस में सेव हो जाता है. साथ ही, लेबल के वर्शन में बढ़ोतरी हो जाती है.
लेबल पब्लिश करें (publish())—लेबल की स्थिति PUBLISHED है और उपयोगकर्ता लेबल लागू कर सकते हैं. लेबल पब्लिश करने पर, उसके वर्शन में बदलाव होता है.
(ज़रूरी नहीं) किसी लेबल, फ़ील्ड या विकल्प (delta()) को अपडेट करें— लेबल, फ़ील्ड या विकल्प को अपडेट किया जाता है और डेटाबेस में ड्राफ़्ट लेबल के तौर पर सेव किया जाता है. लेबल की स्थिति PUBLISHED है. इसका मतलब है कि hasUnpublishedChanges=true में बदलावों का ड्राफ़्ट मौजूद है, लेकिन ये बदलाव उपयोगकर्ताओं के लिए उपलब्ध नहीं हैं. हर अपडेट से, लेबल के वर्शन में बढ़ोतरी होती है.
(ज़रूरी नहीं) लेबल (publish()) पब्लिश करें—अगर उपलब्ध है, तो सबसे नया ड्राफ़्ट पब्लिश किया जाता है. लेबल की स्थिति PUBLISHED है और उपयोगकर्ता इसे लागू कर सकते हैं. लेबल पब्लिश करने पर, उसके वर्शन में बढ़ोतरी होती है.
किसी लेबल (disable()) को बंद करना—लेबल की स्थिति DISABLED होती है. हालांकि, उपयोगकर्ता एपीआई के ज़रिए लेबल लागू कर सकते हैं. हालांकि, जब तक किसी लेबल को दिखाने के लिए कॉन्फ़िगर नहीं किया जाता, तब तक उसे यूज़र इंटरफ़ेस (यूआई) में नहीं दिखाया जाता. लेबल को बंद करने पर, उसके वर्शन में बदलाव हो जाता है.
लेबल (enable()) चालू करना—लेबल को PUBLISHED स्थिति में वापस लाया जाता है
और उपयोगकर्ता लेबल लागू कर सकते हैं. लेबल पब्लिश करने पर, उसके वर्शन में बदलाव होता है.
लेबल मिटाना (delete())—लेबल की स्थिति DELETED है और इसे लागू नहीं किया जा सकता. मिटाए गए लेबल को कुछ समय बाद पूरी तरह से हटा दिया जाता है.
यह ध्यान रखना ज़रूरी है कि लेबल में किए गए हर अपडेट से, लेबल के वर्शन में बढ़ोतरी होती है. अगर लेबल पहले ही पब्लिश किया जा चुका है, तो n अपडेट के बाद उसे फिर से पब्लिश करने का मतलब है कि पब्लिश किए गए उसके वर्शन का नंबर, वर्शन + n + 1 अपडेट की संख्या है.
[null,null,["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[],[],null,["# Label lifecycle\n\nLabels, fields, and choices go through specific states throughout their lives.\nAdditionally, labels might have different revisions. The following diagram shows\nthe label lifecycle, including revisioning:\n**Figure 3.** Lifecycle of a label\n\n1. **Create a label (`create()`)** ---The label is created and stored in a database as `revision_id=1`. The label has the state of `UNPUBLISHED_DRAFT`. In this state:\n - Users can't view the label\n - Users can't apply the label to Drive items.\n2. **(optional) Update a label, field, or choice (`delta()`)**--- Every update, even before it's published, is stored in a database, and the label's revision is incremented.\n3. **Publish a label (`publish()`)** ---The label has the state of `PUBLISHED` and users can apply the label. Publishing the label increments its revision.\n4. **(optional) Update a label, field, or choice (`delta()`)** --- The label, field, or choice is updated and stored in a database as a draft label. The label has the state of `PUBLISHED` with `hasUnpublishedChanges=true` meaning there are draft changes, but they aren't available to users. Each update increments the label's revision.\n5. **(optional) Publish a label (`publish()`)** ---If available, the most-current draft is published. The label has the state of `PUBLISHED` and users can apply the label. Publishing the label increments its version.\n6. **Disable a label (`disable()`)** ---The label has the state of `DISABLED` though users can apply the label through the API. However, a disabled label isn't shown in a UI unless configured to be shown. Deprecating the label increments its revision.\n7. **Enable a label (`enable()`)** ---The label is returned to a `PUBLISHED` state and users can apply the label. Publishing the label increments its revision.\n8. **Delete a label (`delete()`)** ---The label has a state of `DELETED` and can't be applied. Deleted labels are eventually purged.\n\nIt's important to emphasize that every update to a label increments the label's\nrevision. And, if the label has already been published, publishing it again\nafter *n* updates means that its published revision number is revision + *n* + 1\nnumber of successive updates."]]