Method: labels.permissions.batchDelete
刪除標籤權限。權限會影響標籤整體資源、未經修訂,且不需要發布。
HTTP 要求
POST https://drivelabels.googleapis.com/v2/{parent=labels/*}/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
詳情請參閱授權指南。
DeleteLabelPermissionRequest
刪除標籤權限。權限會影響標籤整體資源、未經修訂,且不需要發布。
JSON 表示法 |
{
"name": string,
"useAdminAccess": boolean
} |
欄位 |
name |
string
必要欄位。標籤權限資源名稱。
|
useAdminAccess |
boolean
如要使用使用者的管理員憑證,請設為 true 。伺服器會在授予存取權前,確認使用者是否為標籤的管理員。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-06 (世界標準時間)。
[null,null,["上次更新時間:2024-09-06 (世界標準時間)。"],[[["Deletes permissions for a Label resource, impacting the resource as a whole and not requiring revisions or publishing."],["Utilizes an HTTP POST request with gRPC Transcoding syntax to the specified endpoint for batch deletion of Label permissions."],["Requires providing the parent Label resource name and a request body containing an array of DeleteLabelPermissionRequests."],["Offers an optional `useAdminAccess` flag to utilize admin credentials for the operation, subject to verification."],["Needs authorization with specific OAuth scopes related to Drive labels management."]]],["This document details the process of batch deleting Label permissions via a `POST` HTTP request to `https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions:batchDelete`. The `parent` path parameter specifies the Label. The request body, containing `requests[]` (an array of `DeleteLabelPermissionRequest` objects) and `useAdminAccess`, dictates the permissions to delete. Each `DeleteLabelPermissionRequest` requires a `name`. Admin credentials can be used if `useAdminAccess` is true. A successful request results in an empty response body. OAuth scopes are also required.\n"]]