ee.data.getAssetRootQuota
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
جزئیات استفاده از سهمیه را برای ریشه دارایی با شناسه داده شده برمی گرداند.
نکات استفاده:
- شناسه باید یک پوشه ریشه مانند "users/foo" باشد (نه "users/foo/bar").
- کاربر احراز هویت شده باید دارای ریشه دارایی باشد تا میزان استفاده از سهمیه آن را مشاهده کند.
استفاده | برمی گرداند | ee.data.getAssetRootQuota(rootId, callback ) | AssetQuotaDetails |
استدلال | تایپ کنید | جزئیات | rootId | رشته | شناسه ریشه دارایی برای بررسی، به عنوان مثال "users/foo". |
callback | عملکرد، اختیاری | پاسخ به تماس اختیاری در صورت عدم ارائه، تماس به صورت همزمان انجام می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eProvides quota usage details for a specified asset root folder, such as "users/foo".\u003c/p\u003e\n"],["\u003cp\u003eRequires authentication and ownership of the asset root by the user to view quota usage.\u003c/p\u003e\n"],["\u003cp\u003eAccepts the asset root ID and an optional callback function as arguments.\u003c/p\u003e\n"],["\u003cp\u003eReturns an object containing asset quota details.\u003c/p\u003e\n"],["\u003cp\u003eOnly applies to the top-level folder (root folder) and does not work with nested folders.\u003c/p\u003e\n"]]],[],null,["# ee.data.getAssetRootQuota\n\n\u003cbr /\u003e\n\nReturns quota usage details for the asset root with the given ID.\n\n\u003cbr /\u003e\n\nUsage notes:\n\n- The id *must* be a root folder like \"users/foo\" (not \"users/foo/bar\").\n\n- The authenticated user must own the asset root to see its quota usage.\n\n| Usage | Returns |\n|---------------------------------------------------|-------------------|\n| `ee.data.getAssetRootQuota(rootId, `*callback*`)` | AssetQuotaDetails |\n\n| Argument | Type | Details |\n|------------|--------------------|------------------------------------------------------------------------|\n| `rootId` | String | The ID of the asset root to check, e.g. \"users/foo\". |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]