Method: labels.permissions.delete
מחיקת הרשאה של תווית. ההרשאות משפיעות על המשאב 'תווית' בכללותו, הן לא משתנות ולא דורשות פרסום.
בקשת HTTP
DELETE https://drivelabels.googleapis.com/v2/{name=labels/*/permissions/*}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. שם המשאב של ההרשאה לתווית.
|
פרמטרים של שאילתה
פרמטרים |
useAdminAccess |
boolean
כדי להשתמש בפרטי הכניסה של האדמין של המשתמש צריך להגדיר את הערך true . השרת יאמת שהמשתמש הוא מנהל המערכת של התווית לפני שיתיר גישה.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הביצוע יהיה תקין, גוף התגובה יהיה ריק.
היקפי הרשאות
נדרש אחד מהיקפי ההרשאות הבאים של OAuth:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
למידע נוסף, עיינו במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-04 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]