Method: labels.permissions.delete
ラベルの権限を削除します。権限はラベルリソース全体に影響します。権限は変更されず、公開する必要はありません。
HTTP リクエスト
DELETE https://drivelabels.googleapis.com/v2beta/{name=labels/*/permissions/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。ラベル権限のリソース名。
|
クエリ パラメータ
パラメータ |
useAdminAccess |
boolean
ユーザーの管理者認証情報を使用するには、true に設定します。アクセスを許可する前に、サーバーがラベルの管理者であることを確認する。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
承認スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
詳しくは、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-03 UTC。
[null,null,["最終更新日 2024-09-03 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 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"]]