REST Resource: parents
משאב: ParentReference
הפניה להורה של קובץ.
לקובץ יכולה להיות רק תיקיית הורה אחת. אי אפשר לציין כמה הורים.
ל-methods מסוימות של משאבים (כמו parents.get
) נדרש parentId
. כדי לאחזר את המזהה של הורה, משתמשים בשיטה parents.list
.
ייצוג JSON |
{
"selfLink": string,
"id": string,
"isRoot": boolean,
"kind": string,
"parentLink": string
} |
שדות |
selfLink |
string
פלט בלבד. קישור שמוביל להפניה.
|
id |
string
המזהה של ההורה.
|
isRoot |
boolean
פלט בלבד. אם תיקיית ההורה היא תיקיית הבסיס או לא.
|
kind |
string
פלט בלבד. הערך הוא תמיד drive#parentReference .
|
parentLink |
string
פלט בלבד. קישור להורה.
|
שיטות |
|
הסרה של הורה מקובץ. |
|
מקבל קובץ עזר ספציפי להורה. |
|
הוספה של תיקיית הורה לקובץ. |
|
בתיבת הדו-שיח הזו מפורטים ההורים של קובץ. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-04 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-04 (שעון UTC)."],[[["`ParentReference` is a resource that represents a file's parent folder, and files can only have one parent folder at a time."],["You can retrieve a parent's ID using the `parents.list` method which is necessary for some resource methods like `parents.get`."],["The `ParentReference` resource provides methods for managing parent folders, including `delete`, `get`, `insert`, and `list`, letting you manipulate a file's parent relationship."],["The JSON representation of `ParentReference` includes fields such as `selfLink`, `id`, `isRoot`, `kind`, and `parentLink`, offering detailed information about the parent-child relationship."]]],[]]