REST Resource: accessproposals
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
रिसॉर्स: AccessProposal
किसी फ़ाइल के लिए, ऐक्सेस करने के लंबित अनुरोधों के लिए ऐक्सेस का अनुरोध करने वाला संसाधन
JSON के काेड में दिखाना |
{
"fileId": string,
"proposalId": string,
"requesterEmailAddress": string,
"recipientEmailAddress": string,
"rolesAndViews": [
{
object (RoleAndView )
}
],
"requestMessage": string,
"createTime": string
} |
फ़ील्ड |
fileId |
string
उस फ़ाइल का आईडी जिसके लिए ऐक्सेस करने का अनुरोध किया गया है
|
proposalId |
string
ऐक्सेस के अनुरोध का आईडी
|
requesterEmailAddress |
string
अनुरोध करने वाले उपयोगकर्ता का ईमेल पता
|
recipientEmailAddress |
string
उस उपयोगकर्ता का ईमेल पता जिसे अनुरोध स्वीकार होने पर अनुमतियां मिलेंगी
|
rolesAndViews[] |
object (RoleAndView )
यह ऐक्सेस के अनुरोध की भूमिका और व्यू के लिए रैपर है.
|
requestMessage |
string
अनुरोध करने वाले व्यक्ति ने प्रस्ताव में जो मैसेज जोड़ा है
|
createTime |
string (Timestamp format)
बनाए जाने का समय यह RFC 3339 का इस्तेमाल करता है. इसमें जनरेट किया गया आउटपुट हमेशा Z-नॉर्मलाइज़ किया जाएगा और इसमें 0, 3, 6 या 9 फ़्रैक्शनल अंक इस्तेमाल किए जाएंगे. "Z" के अलावा, अन्य ऑफ़सेट भी स्वीकार किए जाते हैं. उदाहरण: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" या "2014-10-02T15:01:23+05:30" .
|
RoleAndView
यह ऐक्सेस के अनुरोध की भूमिका और व्यू के लिए रैपर है.
JSON के काेड में दिखाना |
{
"role": string,
"view": string
} |
फ़ील्ड |
role |
string
अनुरोध करने वाले व्यक्ति ने जो भूमिका सुझाई है. आने वाले समय में नई वैल्यू जोड़ी जा सकती हैं. हालांकि, फ़िलहाल ये वैल्यू उपलब्ध हैं: * writer * commenter * reader
|
view |
string
इस कुकी से, ऐक्सेस के इस अनुरोध के लिए व्यू का पता चलता है. यह सिर्फ़ उन प्रपोज़ल के लिए अपने-आप भरता है जो किसी व्यू से जुड़े होते हैं. सिर्फ़ published वैल्यू का इस्तेमाल किया जा सकता है.
|
तरीके |
|
इस तरीके से, आईडी के हिसाब से AccessProposal को वापस पाया जा सकता है. |
|
किसी फ़ाइल पर ऐक्सेस के अनुरोधों की सूची बनाएं. |
|
इस कुकी का इस्तेमाल, ऐक्सेस के प्रस्ताव को स्वीकार या अस्वीकार करने के लिए किया जाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-27 (UTC) को अपडेट किया गया."],[],[],null,["# REST Resource: accessproposals\n\n- [Resource: AccessProposal](#AccessProposal)\n - [JSON representation](#AccessProposal.SCHEMA_REPRESENTATION)\n- [RoleAndView](#RoleAndView)\n - [JSON representation](#RoleAndView.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AccessProposal\n------------------------\n\nThe Access Proposal resource for outstanding access proposals on a file\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"fileId\": string, \"proposalId\": string, \"requesterEmailAddress\": string, \"recipientEmailAddress\": string, \"rolesAndViews\": [ { object (/workspace/drive/api/reference/rest/v3/accessproposals#RoleAndView) } ], \"requestMessage\": string, \"createTime\": string } ``` |\n\n| Fields ||\n|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `fileId` | `string` The file id that the proposal for access is on |\n| `proposalId` | `string` The id of the access proposal |\n| `requesterEmailAddress` | `string` The email address of the requesting user |\n| `recipientEmailAddress` | `string` The email address of the user that will receive permissions if accepted |\n| `rolesAndViews[]` | `object (`[RoleAndView](/workspace/drive/api/reference/rest/v3/accessproposals#RoleAndView)`)` A wrapper for the role and view of an access proposal. |\n| `requestMessage` | `string` The message that the requester added to the proposal |\n| `createTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` The creation time Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n\nRoleAndView\n-----------\n\nA wrapper for the role and view of an access proposal.\n\n| JSON representation |\n|--------------------------------------------|\n| ``` { \"role\": string, \"view\": string } ``` |\n\n| Fields ||\n|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `role` | `string` The role that was proposed by the requester New values may be added in the future, but the following are currently possible: \\* `writer` \\* `commenter` \\* `reader` |\n| `view` | `string` Indicates the view for this access proposal. Only populated for proposals that belong to a view. `published` is the only supported value. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------|---------------------------------------------|\n| ### [get](/workspace/drive/api/reference/rest/v3/accessproposals/get) | Retrieves an AccessProposal by ID. |\n| ### [list](/workspace/drive/api/reference/rest/v3/accessproposals/list) | List the AccessProposals on a file. |\n| ### [resolve](/workspace/drive/api/reference/rest/v3/accessproposals/resolve) | Used to approve or deny an Access Proposal. |"]]