نظرة عامة على التصنيفات
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
التصنيفات هي بيانات وصفية تحدِّدها لمساعدة المستخدمين في تنظيم الملفات والبحث عنها وتطبيق السياسات عليها في Google Drive. تتيح واجهة برمجة التطبيقات Drive API للمطوّرين تطبيق التصنيفات على الملفات والمجلدات، وتحديد قيم حقول التصنيفات، وقراءة التصنيفات وقيم الحقول في الملفات، والبحث عن الملفات باستخدام عبارات البيانات الوصفية التي يحدّدها التصنيف المخصّص.
يمكن أن تساعد تصنيفات Drive في دعم العمليات التجارية من خلال إرفاق البيانات الوصفية بالملفات والمجلدات. تشمل الاستخدامات الشائعة للتصنيفات ما يلي:
تصنيف المحتوى لاتّباع استراتيجية إدارة المعلومات: يمكنك إنشاء تصنيف لتحديد المحتوى الحسّاس أو البيانات التي تتطلب معالجة خاصة.
على سبيل المثال، يمكنك إنشاء تصنيف مزوّد بشارة (تصنيف يتضمّن قيم خيارات مرمّزة بالألوان) بعنوان "الحساسية" مع القيم "سري للغاية" و"سري" و "علني".
تطبيق السياسة على العناصر في Drive: يمكنك إنشاء تصنيفات لإدارة محتوى Drive خلال مراحله المختلفة وضمان التزامه بممارسات الاحتفاظ بالسجلات في مؤسستك. على سبيل المثال، استخدِم التصنيفات لإدارة سياسة منع فقدان البيانات (DLP) التي لا تسمح للمستخدمين بتنزيل الملفات التي تم ضبط تصنيف "الحساسية" فيها على "سرّي للغاية".
تنظيم الملفات والعثور عليها: يمكنك إنشاء تصنيفات لزيادة سهولة البحث في محتوى شركتك من خلال السماح للمستخدمين في مؤسستك بالعثور على الملفات استنادًا إلى التصنيفات والحقول. على سبيل المثال، يمكنك تطبيق مجموعة تصنيفات "حالة التوقيع" على "في انتظار التوقيع" لجميع العقود التي تنتظر التوقيع بحلول تاريخ معيّن. يمكن أن تعرض ميزة البحث في Drive هذه العقود عندما يبحث أحد المستخدمين عن "في انتظار التوقيع".
في ما يلي قائمة بالمصطلحات الشائعة التي تستخدمها تصنيفات Drive:
- التصنيف
البيانات الوصفية المنظَّمة الموضوعة في ملف Drive
يمكن لمستخدمي Drive تعيين تصنيفات وضبط قيم حقول التصنيفات للملفات. تتألف التصنيفات من:
- اسم التصنيف
- اسم المورد الخاص بالتصنيف. معرّف التصنيف هو جزء من اسم التصنيف. استنادًا إلى الطلب، يكون الاسم على النحو التالي:
labels/{id}
أو labels/{id}@{revisionId}
. لمزيد من المعلومات، يُرجى الاطّلاع على مراجعة التصنيف أدناه.
- معرّف التصنيف
- معرّف فريد عالميًا للتصنيف. المعرّف هو جزء من اسم التصنيف، ولكن على عكس الاسم، يكون المعرّف متسقًا بين المراجعات.
- الحقل
تمثّل هذه السمة جزءًا فرديًا من التصنيف يمكن ضبطه. يمكن أن يحتوي التصنيف على صفر أو أكثر من الحقول المرتبطة به. يمكن ضبط حقول الاختيار والمستخدم بقيم متعدّدة إذا تم إعداد الحقل باستخدام ListOptions
في Google Drive Labels API.
- نوع الحقل
- نوع البيانات الخاص بالقيمة المرتبطة بالحقل يمكن ضبطها كعدد صحيح أو سلسلة تاريخ أو نص أو مستخدم أو اختيار. يؤثر النوع الذي تختاره في القيم الصالحة التي تنطبق على عناصر Drive وخيارات طلب البحث المتاحة.
- تصنيف التصنيفات
حقول التصنيف التي تم إعدادها والمتاحة للمستخدمين لتطبيقها على ملفات Drive يمكن قراءتها وكتابتها من خلال
Drive Labels API. يُعرف أيضًا باسم مخطط التصنيف.
- مراجعة التصنيف
مثيل للتصنيف في كل مرة يتم فيها إنشاء تصنيف أو تعديله أو نشره أو إيقافه نهائيًا، يزداد رقم مراجعة التصنيف.
- مراجعة مسودّة
- رقم مراجعة مسودة التصنيف الحالية. يمكنك إجراء عدّة تعديلات على تصنيف، مع زيادة رقم مراجعة المسودة في كل مرة، بدون التأثير في المراجعة المنشورة. تتيح لك ميزة إنشاء مسودات للتصنيفات اختبار التعديلات على التصنيفات قبل نشرها.
- النسخة السابقة المنشورة
- رقم المراجعة للإصدار المنشور من التصنيف التصنيف المنشور هو نسخة من التصنيف متاحة للمستخدمين.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-04 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-04 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Labels overview\n\n*Labels* are metadata that you define to help users organize, find, and apply\npolicy to files in Google Drive. The Drive API allows developers to\napply labels to files and folders, set label field values, read labels and field\nvalues on files, and search for files using metadata terms defined by the custom\nlabel taxonomy.\n\nDrive labels can support business processes by attaching metadata\nto files and folders. Common uses for labels are:\n\n- **Classify content to follow an information governance strategy**---Create a\n label to identify sensitive content or data that requires special handling.\n For example, you might create a badged label (a label with color-coded\n option values) titled \"Sensitivity\" with the values of \"Top Secret,\"\n \"Confidential,\" and \"Public.\"\n\n- **Apply policy to items in Drive**---Create labels to manage\n Drive content throughout its lifecycle and ensure it adheres\n to your organization's record keeping practices. For example, use labels to\n manage a data loss policy (DLP) whereby users can't download files with a\n \"Sensitivity\" label set to \"Top Secret\".\n\n- **Curate and find files**---Create labels to increase searchability of your\n company's content by letting people in your organization find items based on\n labels and their fields. For example, apply a \"Signature Status\" label set\n to \"Awaiting Signature\" to all contracts awaiting signature by a specific\n date. Drive search can then return these contracts when\n someone searches \"awaiting signature\".\n\nBelow is a list of common terms used by Drive labels:\n\n*Label*\n\n: Structured metadata placed on a Drive file.\n Drive users can assign labels and set label field values\n for files. Labels are composed of:\n\n *Label name*\n : The resource name of the label. The *label ID* is part of the\n Label name. Depending on the request, the name is in the form of either:\n `labels/{id}` or `labels/{id}@{revisionId}`. For more information, see\n [Label revision](#revision) below.\n\n *Label ID*\n : A globally unique identifier for the label. The ID is part of the\n label name, but unlike the name, it's consistent between revisions.\n\n*Field*\n\n: An individual typed, settable component of a label. A label can have zero or\n more fields associated with it. Selection and user fields can be set with\n multiple values if the field is configured with\n [`ListOptions`](/workspace/drive/labels/reference/rest/v2/labels#listoptions) in the\n [Google Drive Labels API](/workspace/drive/labels/guides/overview).\n\n *Field type*\n : The data type of the value associated with the *field*. Configurable as\n integer, dateString, text, user, or selection. The type chosen impacts\n both the valid values applicable to Drive items and the\n search query options available.\n\n*Label taxonomy*\n\n: The configured label fields available to users for application to\n Drive files. Readable and writable through the\n Drive Labels API. Also known as the label schema.\n\n*Label revision*\n\n: An instance of the label. Anytime a label is created, updated, published, or\n deprecated, the label revision increments.\n\n *Draft revision*\n : The revision number of the current draft instance of the label. You can\n make several updates to a label, each incrementing its draft revision\n number, without affecting the published revision. The ability to have\n draft labels lets you test label updates before publishing.\n\n *Published revision*\n : The revision number of the published version of a label. The published\n label is the instance of the label available to users.\n\nRelated topics\n--------------\n\n- To learn about using labels in Drive, see [Set a label field\n on a file](/workspace/drive/api/guides/set-label).\n- Learn more about the [Drive Labels API](/workspace/drive/labels/guides/overview)."]]