REST Resource: properties
משאב: נכס
צמד מפתח/ערך שמצורף לקובץ שהוא ציבורי או פרטי באפליקציה.
המגבלות הבאות חלות על מאפייני הקבצים:
- עד 100 נכסים בסך הכול לקובץ
- עד 30 נכסים פרטיים לכל אפליקציה
- עד 30 נכסים ציבוריים
- מגבלת גודל של 124 בייטים במחרוזת (מפתח + ערך) בקידוד UTF-8 לנכס יחיד
ל-methods מסוימות של משאבים (כמו properties.update
) נדרש propertyKey
. משתמשים בשיטה properties.list
כדי לאחזר את המפתח של נכס.
ייצוג JSON |
{
"selfLink": string,
"value": string,
"visibility": string,
"kind": string,
"etag": string,
"key": string
} |
שדות |
selfLink |
string
פלט בלבד. הקישור בחזרה לנכס הזה.
|
value |
string
הערך של הנכס הזה.
|
visibility |
string
הרשאות הגישה של הנכס הזה. הערכים המותרים הם PRIVATE (ברירת המחדל) ו-PUBLIC. אפשר לאחזר נכסים פרטיים רק באמצעות בקשה מאומתת. בקשה מאומתת משתמשת באסימון גישה שהתקבל עם מזהה לקוח OAuth 2. לא ניתן להשתמש במפתח API כדי לאחזר נכסים פרטיים.
|
kind |
string
פלט בלבד. הערך הוא תמיד drive#property .
|
etag |
string
פלט בלבד. ה-ETag של הנכס.
|
key |
string
המפתח של הנכס הזה.
|
שיטות |
|
מוחק נכס. |
|
הפונקציה מקבלת נכס לפי המפתח שלו. |
|
מוסיף נכס לקובץ או מעדכנת אותו אם הוא כבר קיים. |
|
מציין את המאפיינים של קובץ. |
|
מעדכנות נכס. |
|
מעדכנות נכס. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-04 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-04 (שעון UTC)."],[[["File properties are key-value pairs that can be attached to a file, with limits on the total number and size."],["Properties can have either public or private visibility, impacting how they are accessed."],["The `properties` resource provides methods for managing file properties, such as adding, updating, deleting, and listing them."],["Each property is represented by a JSON object with fields like `selfLink`, `value`, `visibility`, `kind`, `etag`, and `key`."],["To retrieve the key for a property, which is needed for some operations, use the `properties.list` method."]]],["File properties are key-value pairs, either public or private, with limits: 100 total, 30 private per app, 30 public, and 124 bytes per property. Properties can be manipulated using methods such as `delete`, `get`, `insert`, `list`, `patch`, and `update`. The `visibility` field determines if the property is private or public. Private properties require OAuth 2 authentication, they can't use an API key. `properties.list` retrieves property keys, necessary for `properties.update`.\n"]]