REST Resource: labels.permissions
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: LabelPermission
किसी लेबल पर किसी प्रिंसिपल (उपयोगकर्ता, ग्रुप, ऑडियंस) के लिए लागू होने वाली अनुमति.
JSON के काेड में दिखाना |
{
"name": string,
"email": string,
"role": enum (LabelRole ),
// Union field principal can be only one of the following:
"person": string,
"group": string,
"audience": string
// End of list of possible types for union field principal .
} |
फ़ील्ड |
name |
string
इस अनुमति के संसाधन का नाम.
|
email |
string
यह किसी उपयोगकर्ता या ग्रुप के मुख्य व्यक्ति का ईमेल पता तय करता है. ऑडियंस प्रिंसिपल के लिए, यह जानकारी अपने-आप नहीं भरती है. उपयोगकर्ता और ग्रुप की अनुमतियां सिर्फ़ ईमेल पते का इस्तेमाल करके जोड़ी जा सकती हैं. अपडेट करने के अनुरोधों में, अगर ईमेल पता दिया गया है, तो किसी प्रिंसिपल का नाम नहीं दिया जाना चाहिए.
|
role |
enum (LabelRole )
मुख्य खाते के पास यह भूमिका होनी चाहिए.
|
यूनियन फ़ील्ड principal . यह अनुमति जिस मुख्य व्यक्ति या इकाई पर लागू होती है. यह ईमेल, उपयोगकर्ता, ग्रुप या ऑडियंस में से कोई एक होना चाहिए. उदाहरण: * people/12345 * groups/45678 * audiences/default principal इनमें से सिर्फ़ एक हो सकता है: |
person |
string
व्यक्ति के संसाधन का नाम.
|
group |
string
ग्रुप के संसाधन का नाम.
|
audience |
string
जिस ऑडियंस को भूमिका असाइन करनी है. audiences/default की मैजिक वैल्यू का इस्तेमाल, लेबल के मालिक संगठन के संदर्भ में डिफ़ॉल्ट ऑडियंस पर भूमिका लागू करने के लिए किया जा सकता है.
|
LabelRole
भूमिकाएं, बाद की भूमिका के साथ जुड़ी होती हैं.
Enums |
LABEL_ROLE_UNSPECIFIED |
भूमिका की जानकारी नहीं है. |
READER |
कोई भी व्यक्ति, Drive में मौजूद आइटम पर लागू किए गए लेबल और उससे जुड़े मेटाडेटा को पढ़ सकता है. |
APPLIER |
आवेदन करने वाला व्यक्ति, Drive में मौजूद उन आइटम पर मेटाडेटा लिख सकता है जिनके लिए उसके पास लिखने का ऐक्सेस भी है. इसका मतलब है कि READER . |
ORGANIZER |
आयोजक, इस लेबल को उन शेयर की गई ड्राइव में पिन कर सकता है जिन्हें वह मैनेज करता है. साथ ही, लेबल में नए लोगों को जोड़ सकता है. |
EDITOR |
एडिटर, कोई भी बदलाव कर सकते हैं. इनमें लेबल मिटाना भी शामिल है. लेबल मिटाने पर, उससे जुड़ा Drive आइटम का मेटाडेटा भी मिट जाता है. इसका मतलब है कि APPLIER . |
तरीके |
|
यह कुकी, लेबल की अनुमतियां मिटाती है. |
|
यह लेबल की अनुमतियों को अपडेट करता है. |
|
यह लेबल की अनुमतियों को अपडेट करता है. |
|
यह लेबल की अनुमति मिटाता है. |
|
यह लेबल की अनुमतियों की सूची दिखाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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,["# REST Resource: labels.permissions\n\n- [Resource: LabelPermission](#LabelPermission)\n - [JSON representation](#LabelPermission.SCHEMA_REPRESENTATION)\n - [LabelRole](#LabelPermission.LabelRole)\n- [Methods](#METHODS_SUMMARY)\n\nResource: LabelPermission\n-------------------------\n\nThe permission that applies to a principal (user, group, audience) on a label.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"email\": string, \"role\": enum (/workspace/drive/labels/reference/rest/v2/labels.permissions#LabelPermission.LabelRole), // Union field `principal` can be only one of the following: \"person\": string, \"group\": string, \"audience\": string // End of list of possible types for union field `principal`. } ``` |\n\n| Fields ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name of this permission. |\n| `email` | `string` Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified. |\n| `role` | `enum (`[LabelRole](/workspace/drive/labels/reference/rest/v2/labels.permissions#LabelPermission.LabelRole)`)` The role the principal should have. |\n| Union field `principal`. The principal this permission applies to. Must be either an email, user, group, or audience. Example: \\* `people/12345` \\* `groups/45678` \\* `audiences/default` `principal` can be only one of the following: ||\n| `person` | `string` Person resource name. |\n| `group` | `string` Group resource name. |\n| `audience` | `string` Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label. |\n\n### LabelRole\n\nRoles are concentric with subsequent role.\n\n| Enums ||\n|--------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| `LABEL_ROLE_UNSPECIFIED` | Unknown role. |\n| `READER` | A reader can read the label and associated metadata applied to Drive items. |\n| `APPLIER` | An applier can write associated metadata on Drive items in which they also have write access to. Implies `READER`. |\n| `ORGANIZER` | An organizer can pin this label in shared drives they manage and add new appliers to the label. |\n| `EDITOR` | Editors can make any update including deleting the label which also deletes the associated Drive item metadata. Implies `APPLIER`. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------------|--------------------------------|\n| ### [batchDelete](/workspace/drive/labels/reference/rest/v2/labels.permissions/batchDelete) | Deletes label permissions. |\n| ### [batchUpdate](/workspace/drive/labels/reference/rest/v2/labels.permissions/batchUpdate) | Updates label permissions. |\n| ### [create](/workspace/drive/labels/reference/rest/v2/labels.permissions/create) | Updates a label's permissions. |\n| ### [delete](/workspace/drive/labels/reference/rest/v2/labels.permissions/delete) | Deletes a label's permission. |\n| ### [list](/workspace/drive/labels/reference/rest/v2/labels.permissions/list) | Lists a label's permissions. |"]]