Method: labels.permissions.delete
حذف إذن التصنيف تؤثر الأذونات في مورد "التصنيف" ككل، ولا تتم مراجعتها، ولا تتطلّب نشرها.
طلب HTTP
DELETE https://drivelabels.googleapis.com/v2beta/{name=labels/*/permissions/*}
يستخدم عنوان URL بنية تحويل الترميز gRPC.
معلمات المسار
المَعلمات |
name |
string
مطلوبة. اسم مورد إذن التصنيف.
|
معلمات طلب البحث
المَعلمات |
useAdminAccess |
boolean
يمكنك ضبط القيمة على true لاستخدام بيانات اعتماد المشرف الخاصة بالمستخدم. سيتحقق الخادم من أن المستخدم هو مشرف التصنيف قبل السماح بالوصول.
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يكون نص الاستجابة فارغًا.
نطاقات التفويض
يتطلب استخدام أحد نطاقات OAuth التالية:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
لمزيد من المعلومات، يُرجى الاطّلاع على دليل التفويض.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-03 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-03 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This document outlines the process for deleting a Label's permission using the Drive Labels API, emphasizing that permissions apply to the entire Label and are not version-controlled."],["You will need to send a DELETE request to a specific URL, including the Label Permission resource name as a path parameter."],["Optionally, you can use the 'useAdminAccess' query parameter to leverage admin credentials for the operation, given the user has admin privileges for the Label."],["Authorization requires having either the 'drive.labels' or 'drive.admin.labels' OAuth scope, as detailed in the Authorization guide."],["Successful execution of the request results in an empty response body, indicating the permission was deleted."]]],["This document details how to delete a Label's permission via an HTTP DELETE request to a specified URL. The URL, defined using gRPC Transcoding syntax, requires the Label Permission resource name as a path parameter. An optional `useAdminAccess` query parameter allows for admin credential usage. The request body must be empty, and a successful operation results in an empty response body. Authorization requires either the `drive.labels` or `drive.admin.labels` OAuth scope. Permissions are applied to the Label resource as a whole, are not revisioned and do not need to be published.\n"]]