Method: labels.permissions.delete
مجوز یک برچسب را حذف می کند. مجوزها بر منبع Label به طور کلی تأثیر میگذارند، بازبینی نمیشوند و نیازی به انتشار ندارند.
درخواست HTTP
DELETE https://drivelabels.googleapis.com/v2beta/{name=labels/*/permissions/*}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
name | string ضروری. نام منبع مجوز برچسب. |
پارامترهای پرس و جو
مولفه های |
---|
useAdminAccess | boolean برای استفاده از اعتبارنامه مدیریت کاربر، روی true تنظیم کنید. سرور قبل از اجازه دسترسی، تأیید میکند که کاربر یک سرپرست برای Label است. |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ خالی است.
محدوده مجوز
به یکی از حوزه های OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/drive.labels
-
https://www.googleapis.com/auth/drive.admin.labels
برای اطلاعات بیشتر، به راهنمای مجوز مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["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"]]