Method: labels.permissions.delete
Usuwa uprawnienia etykiety. Uprawnienia mają wpływ na cały zasób etykiet, nie podlegają zmianom i nie wymagają publikowania.
Żądanie HTTP
DELETE https://drivelabels.googleapis.com/v2/{name=labels/*/permissions/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
To pole jest wymagane. Nazwa zasobu uprawnienia etykiety.
|
Parametry zapytania
Parametry |
useAdminAccess |
boolean
Ustaw wartość true , aby korzystać z danych logowania administratora. Przed zezwoleniem na dostęp serwer sprawdzi, czy użytkownik jest administratorem etykiety.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie pusta.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
Więcej informacji znajdziesz w przewodniku po autoryzacji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-04 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]