Method: labels.revisions.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/*/revisions/*/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 API deletes a specific permission for a Google Drive Label, impacting the entire Label resource and not requiring revisions or publishing."],["The request requires specifying the Label Permission resource name in the URL path and can utilize admin credentials with the `useAdminAccess` query parameter."],["The request body should be empty, and a successful deletion results in an empty response body."],["Authorization is necessary with either `https://www.googleapis.com/auth/drive.labels` or `https://www.googleapis.com/auth/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 verification. The request body must be empty, and a successful deletion results in an empty response body. Authorization requires either the `drive.labels` or `drive.admin.labels` OAuth scope.\n"]]