Method: labels.permissions.batchDelete
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह कुकी, लेबल की अनुमतियां मिटाती है. अनुमतियों का असर पूरे लेबल संसाधन पर पड़ता है. इन्हें बदला नहीं जा सकता और इन्हें पब्लिश करने की ज़रूरत नहीं होती.
एचटीटीपी अनुरोध
POST https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions:batchDelete
यह यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. पेरेंट लेबल का वह संसाधन नाम जिसे मिटाई जा रही सभी अनुमतियों के साथ शेयर किया गया है. फ़ॉर्मैट: labels/{label} . अगर यह फ़ील्ड सेट है, तो UpdateLabelPermissionRequest मैसेज में मौजूद पैरंट फ़ील्ड की वैल्यू खाली होनी चाहिए या इस फ़ील्ड से मेल खानी चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में, इस स्ट्रक्चर का डेटा शामिल होता है:
फ़ील्ड |
requests[] |
object (DeleteLabelPermissionRequest )
ज़रूरी है. अनुरोध का वह मैसेज जिसमें अपडेट किए जाने वाले संसाधनों के बारे में बताया गया हो.
|
useAdminAccess |
boolean
उपयोगकर्ता के एडमिन क्रेडेंशियल का इस्तेमाल करने के लिए, इसे true पर सेट करें. सर्वर, उपयोगकर्ता को ऐक्सेस देने से पहले यह पुष्टि करेगा कि वह लेबल का एडमिन है. अगर यह सेट है, तो DeleteLabelPermissionRequest मैसेज में मौजूद useAdminAccess फ़ील्ड या तो खाली होना चाहिए या इस फ़ील्ड से मेल खाना चाहिए.
|
जवाब का मुख्य भाग
अगर अनुरोध पूरा हो जाता है, तो जवाब के मुख्य हिस्से में एक खाली JSON ऑब्जेक्ट होता है.
अनुमति के स्कोप
इसके लिए, इनमें से किसी एक OAuth स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/drive.labels
https://www.googleapis.com/auth/drive.admin.labels
ज़्यादा जानकारी के लिए, अनुमति पाने से जुड़ी गाइड देखें.
DeleteLabelPermissionRequest
यह लेबल की अनुमति को मिटाता है. अनुमतियों का असर पूरे लेबल संसाधन पर पड़ता है. इन्हें बदला नहीं जा सकता और इन्हें पब्लिश करने की ज़रूरत नहीं होती.
JSON के काेड में दिखाना |
{
"name": string,
"useAdminAccess": boolean
} |
फ़ील्ड |
name |
string
ज़रूरी है. लेबल से जुड़ी अनुमति के संसाधन का नाम.
|
useAdminAccess |
boolean
उपयोगकर्ता के एडमिन क्रेडेंशियल का इस्तेमाल करने के लिए, इसे true पर सेट करें. सर्वर, उपयोगकर्ता को ऐक्सेस देने से पहले यह पुष्टि करेगा कि वह लेबल का एडमिन है.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-05 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-05 (UTC) को अपडेट किया गया."],[],[],null,["# Method: labels.permissions.batchDelete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [DeleteLabelPermissionRequest](#DeleteLabelPermissionRequest)\n - [JSON representation](#DeleteLabelPermissionRequest.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nDeletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.\n\n### HTTP request\n\n`POST https://drivelabels.googleapis.com/v2/{parent=labels/*}/permissions:batchDelete`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/workspace/drive/labels/reference/rest/v2/labels.permissions/batchDelete#DeleteLabelPermissionRequest) } ], \"useAdminAccess\": boolean } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[DeleteLabelPermissionRequest](/workspace/drive/labels/reference/rest/v2/labels.permissions/batchDelete#DeleteLabelPermissionRequest)`)` Required. The request message specifying the resources to update. |\n| `useAdminAccess` | `boolean` Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access. If this is set, the `useAdminAccess` field in the `DeleteLabelPermissionRequest` messages must either be empty or match this field. |\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/drive.labels`\n- `\n https://www.googleapis.com/auth/drive.admin.labels`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nDeleteLabelPermissionRequest\n----------------------------\n\nDeletes a label permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.\n\n| JSON representation |\n|-------------------------------------------------------|\n| ``` { \"name\": string, \"useAdminAccess\": boolean } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Label permission resource name. |\n| `useAdminAccess` | `boolean` Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access. |"]]