Method: labels.revisions.permissions.batchDelete
刪除標籤權限。權限會影響標籤整體資源、未經修訂,且不需要發布。
HTTP 要求
POST https://drivelabels.googleapis.com/v2/{parent=labels/*/revisions/*}/permissions:batchDelete
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。所有遭刪除權限共用的父項標籤資源名稱。Format: labels/{label} 如果設定這個項目,UpdateLabelPermissionRequest 訊息中的上層欄位必須為空白或符合這個欄位。
|
要求主體
要求主體的資料會採用以下結構:
欄位 |
requests[] |
object (DeleteLabelPermissionRequest )
必要欄位。用於指定要更新資源的要求訊息。
|
useAdminAccess |
boolean
如要使用使用者的管理員憑證,請設為 true 。伺服器會在授予存取權前,確認使用者是否為標籤的管理員。如果設定了這項設定,DeleteLabelPermissionRequest 訊息中的 useAdminAccess 欄位必須為空白或符合這個欄位。
|
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-04 (世界標準時間)。
[null,null,["上次更新時間:2024-09-04 (世界標準時間)。"],[[["Deletes Label permissions which are not revisioned and do not require publishing."],["Uses the `POST` method with the URL `https://drivelabels.googleapis.com/v2/{parent=labels/*/revisions/*}/permissions:batchDelete`."],["Requires specifying the parent Label resource name shared by all permissions being deleted."],["Request body includes an array of `requests` specifying the resources to update and an optional `useAdminAccess` boolean."],["Authorization requires either `https://www.googleapis.com/auth/drive.labels` or `https://www.googleapis.com/auth/drive.admin.labels` scope."]]],["This document details the process for batch deleting Label permissions via an HTTP POST request to `https://drivelabels.googleapis.com/v2/{parent}/permissions:batchDelete`. The request requires a `parent` path parameter representing the Label resource. The request body, in JSON format, includes an array of `requests` specifying which permissions to delete and optionally a `useAdminAccess` boolean field for admin authentication. Successful deletion results in an empty response body. Authorization requires either the `drive.labels` or `drive.admin.labels` OAuth scope.\n"]]