Method: labels.revisions.permissions.batchDelete
Usuwa uprawnienia dotyczące etykiet. Uprawnienia mają wpływ na cały zasób etykiet, nie są zmieniane i nie wymagają publikacji.
Żądanie HTTP
POST https://drivelabels.googleapis.com/v2/{parent=labels/*/revisions/*}/permissions:batchDelete
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Nazwa zasobu etykiety nadrzędnej używana przez wszystkie usuwane uprawnienia. Format: label/{label} Jeśli jest ustawiony, pole nadrzędne w komunikatach UpdateLabelPermissionRequest musi być puste lub pasować do tego pola.
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Pola |
requests[] |
object (DeleteLabelPermissionRequest )
Wymagane. Komunikat żądania określający zasoby do zaktualizowania.
|
useAdminAccess |
boolean
Ustaw jako true , aby móc korzystać z danych logowania administratora użytkownika. Przed zezwoleniem na dostęp serwer sprawdzi, czy użytkownik jest administratorem etykiety. Jeśli ta zasada jest ustawiona, pole useAdminAccess w komunikatach DeleteLabelPermissionRequest musi być puste lub pasować do tego pola.
|
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie pusta.
Zakresy autoryzacji
Wymaga jednego z tych zakresów protokołu OAuth:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
Więcej informacji znajdziesz w przewodniku na temat 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."],[[["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"]]