Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Etiketler, alanlar ve seçenekler, yaşamları boyunca belirli durumlardan geçer.
Ayrıca, etiketlerin farklı düzeltmeleri olabilir. Aşağıdaki şemada, revizyon da dahil olmak üzere etiket yaşam döngüsü gösterilmektedir:
3.şekil Etiketin yaşam döngüsü
Etiket oluşturma (create()): Etiket oluşturulur ve revision_id=1 olarak bir veritabanında saklanır. Etiketin durumu UNPUBLISHED_DRAFT.
Bu durumda:
(İsteğe bağlı) Etiketi, alanı veya seçimi güncelleyin (delta()): Yayınlanmadan önce bile her güncelleme bir veritabanında depolanır ve etiketin revizyonu artırılır.
Etiket yayınlama (publish()): Etiketin durumu PUBLISHED'dır ve kullanıcılar etiketi uygulayabilir. Etiketin yayınlanması, revizyonunu artırır.
(İsteğe bağlı) Etiketi, alanı veya seçimi güncelleme (delta()): Etiket, alan veya seçim güncellenir ve taslak etiket olarak bir veritabanında saklanır. Etiket, PUBLISHED durumundadır. hasUnpublishedChanges=true, taslak değişiklikler olduğunu ancak bunların kullanıcılar tarafından kullanılamadığını gösterir. Her güncelleme, etiketin revizyonunu artırır.
(isteğe bağlı) Etiket yayınlama (publish()): Varsa en güncel taslak yayınlanır. Etiketin durumu PUBLISHED ve kullanıcılar etiketi uygulayabilir. Etiketin yayınlanması, sürümünü artırır.
Etiketi devre dışı bırakma (disable()): Etiket, kullanıcılar etiketi API aracılığıyla uygulayabilse de DISABLED durumundadır. Ancak devre dışı bırakılmış bir etiket, gösterilecek şekilde yapılandırılmadığı sürece kullanıcı arayüzünde gösterilmez. Etiketin desteğinin sonlandırılması, düzeltmesini artırır.
Etiketi etkinleştirme (enable()): Etiket PUBLISHED durumuna geri döner ve kullanıcılar etiketi uygulayabilir. Etiketin yayınlanması, revizyonunu artırır.
Etiket silme (delete()): Etiketin durumu DELETED ve uygulanamıyor. Silinen etiketler belirli bir süre sonra temizlenir.
Bir etikette yapılan her güncellemenin etiketin revizyonunu artırdığını vurgulamak önemlidir. Etiket zaten yayınlandıysa n güncellemeden sonra tekrar yayınlanması, yayınlanan düzeltme numarasının düzeltme + n + 1 ardışık güncelleme sayısı olacağı anlamına gelir.
[null,null,["Son güncelleme tarihi: 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."]]