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) زمان ایجاد یک مهر زمانی در قالب RFC3339 UTC "Zulu"، با وضوح نانوثانیه و حداکثر نه رقم کسری. مثالها: "2014-10-02T15:01:23Z" و "2014-10-02T15:01:23.045123456Z" . |
RoleAndView
یک لفاف برای نقش و نمای یک پیشنهاد دسترسی.
نمایندگی JSON |
---|
{
"role": string,
"view": string
} |
فیلدها |
---|
role | string نقشی که توسط درخواست کننده پیشنهاد شد ممکن است در آینده مقادیر جدیدی اضافه شود، اما موارد زیر در حال حاضر امکان پذیر است: * writer * commenter * reader |
view | string نمای این پیشنهاد دسترسی را نشان می دهد. فقط برای پیشنهادهایی که به یک view تعلق دارند پر شده است. published تنها مقدار پشتیبانی شده است. |
روش ها |
---|
| یک AccessProposal را با شناسه بازیابی می کند. |
| AccessProposals را روی یک فایل فهرست کنید. |
| برای تأیید یا رد یک پیشنهاد دسترسی استفاده می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-02-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-02-27 بهوقت ساعت هماهنگ جهانی."],[[["Access Proposals manage outstanding access requests for files, detailing requester, recipient, desired role, and optional message."],["`AccessProposal` resource includes details like `fileId`, `proposalId`, requester/recipient emails, roles, and timestamps."],["`RoleAndView` within proposals defines the requested permission level (e.g., writer, commenter) and optional view (currently only 'published')."],["Drive API methods allow retrieval, listing, and resolution (approval/denial) of Access Proposals."]]],["The core content details the `AccessProposal` resource, which represents pending access requests for a file. Key information includes the `fileId`, `proposalId`, `requesterEmailAddress`, `recipientEmailAddress`, `rolesAndViews`, `requestMessage`, and `createTime`. The `RoleAndView` specifies the requested access level (`role`: writer, commenter, reader) and view (`published`). Three primary actions are outlined: retrieving an `AccessProposal` by ID, listing all proposals on a file, and resolving (approving/denying) a proposal.\n"]]