Method: labels.permissions.delete
Xoá quyền của Nhãn. Các quyền ảnh hưởng đến toàn bộ tài nguyên Nhãn, không được sửa đổi và không yêu cầu xuất bản.
Yêu cầu HTTP
DELETE https://drivelabels.googleapis.com/v2/{name=labels/*/permissions/*}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
name |
string
Bắt buộc. Tên tài nguyên của Quyền đối với nhãn.
|
Tham số truy vấn
Thông số |
useAdminAccess |
boolean
Đặt thành true để sử dụng thông tin đăng nhập của quản trị viên của người dùng. Máy chủ sẽ xác minh người dùng là quản trị viên của Nhãn trước khi cho phép truy cập.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ trống.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau đây:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
Để biết thêm thông tin, hãy xem bài viết Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-04 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-04 UTC."],[[["This document outlines the process for deleting a Label's permission using the Drive Labels API, emphasizing that permissions apply to the entire Label resource and aren't versioned."],["The method requires a `DELETE` request to a specific URL with the Label Permission resource name as a path parameter, enabling users to remove access control for a specific label."],["An optional query parameter `useAdminAccess` can be set to `true` to leverage the user's admin privileges for authorization, requiring verification of admin status before proceeding."],["Successful deletion is indicated by an empty response body, while authorization necessitates the use of either `drive.labels` or `drive.admin.labels` OAuth scopes."]]],["This document details how to delete a Label's permission via an HTTP DELETE request. The request URL, defined using gRPC Transcoding syntax, includes a required `name` path parameter specifying the Label Permission resource. An optional `useAdminAccess` query parameter allows for admin credential use. The request body must be empty. A successful response returns an empty body. Authorization requires either the `drive.labels` or `drive.admin.labels` OAuth scope. The operation directly impacts the Label resource and doesn't involve revisions or publishing.\n"]]