برنامه های وب و فایل های اجرایی API منبع مانیفست
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
پیکربندی منابع مورد استفاده برای تعریف برنامه های وب و فایل های اجرایی API.
برنامه وب
پیکربندی برنامه وب پروژه اسکریپت، که فقط در صورتی استفاده می شود که پروژه به عنوان یک برنامه وب مستقر شود.
نمایندگی JSON |
---|
{
"access": string,
"executeAs": string
} |
فیلدها |
---|
access | string سطوح مجوز برای اجرای برنامه وب. تنظیمات معتبر به شرح زیر است: -
MYSELF نشان می دهد که فقط کاربری که برنامه را مستقر کرده است می تواند آن را اجرا کند. -
DOMAIN نشان میدهد که فقط کاربرانی در همان دامنهای که کاربر مستقر میتواند آن را اجرا کند. -
ANYONE هر کاربری را نشان می دهد که وارد شده است. -
ANYONE_ANONYMOUS هر کاربر را نشان می دهد، حتی اگر وارد نشده باشد.
|
executeAs | string هویتی که برنامه وب تحت آن اجرا می شود. تنظیمات معتبر به شرح زیر است: -
USER_ACCESSING نشان میدهد که برنامه وب با دسترسی کاربر به آن اجرا میشود. -
USER_DEPLOYING نشان میدهد که برنامه وب بهعنوان کاربری اجرا میشود.
|
ExecutionApi
پیکربندی اجرایی API پروژه اسکریپت. این فقط در صورتی استفاده می شود که پروژه برای اجرای API مستقر شده باشد.
نمایندگی JSON |
---|
{
"access": string
} |
فیلدها |
---|
access | string تعیین می کند که چه کسی مجوز اجرای اسکریپت را از API دارد. تنظیمات معتبر به شرح زیر است: -
MYSELF نشان می دهد که تنها کاربری که اسکریپت را اجرا کرده است می تواند آن را اجرا کند. -
DOMAIN نشان میدهد که فقط کاربرانی در همان دامنهای که کاربر مستقر میتواند آن را اجرا کند. -
ANYONE هر کاربری را نشان می دهد که وارد شده است. -
ANYONE_ANONYMOUS هر کاربر را نشان می دهد، حتی اگر وارد نشده باشد.
|
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eResource configurations define how web apps and APIs execute within a project.\u003c/p\u003e\n"],["\u003cp\u003eWeb app configurations control access levels (MYSELF, DOMAIN, ANYONE, ANYONE_ANONYMOUS) and execution identity (USER_ACCESSING, USER_DEPLOYING).\u003c/p\u003e\n"],["\u003cp\u003eAPI executable configurations manage access permissions for running scripts via the API, using similar access levels as web apps.\u003c/p\u003e\n"]]],[],null,["# Web apps and API executables manifest resource\n\nThe resource configurations used to define web apps and API executables.\n\nWebapp\n------\n\nThe script project's web app configuration, which is only used if the project\nis deployed as a web app.\n\n| JSON representation |\n|-------------------------------------------------------|\n| ```text { \"access\": string, \"executeAs\": string } ``` |\n\n| Fields ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `access` | `string` The levels of permission for running the web app. The valid settings are the following: - `MYSELF` indicates only the user who deployed the app can run it. - `DOMAIN` indicates only users in the same domain as the deploying user can run it. - `ANYONE` indicates any user who is logged in. - `ANYONE_ANONYMOUS` indicates any user, even if not logged in. |\n| `executeAs` | `string` The identity under which the web app executes. The valid settings are the following: - `USER_ACCESSING` indicates the web app runs as the user accessing it. - `USER_DEPLOYING` indicates the web app runs as the user who deployed it. |\n\nExecutionApi\n------------\n\nThe script project's API executable configuration. This is only used if the\nproject is deployed for API execution.\n\n| JSON representation |\n|----------------------------------|\n| ```text { \"access\": string } ``` |\n\n| Fields ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `access` | `string` Determines who has permission to run the script from the API. The valid settings are the following: - `MYSELF` indicates only the user who deployed the script can run it. - `DOMAIN` indicates only users in the same domain as the deploying user can run it. - `ANYONE` indicates any user who is logged in. - `ANYONE_ANONYMOUS` indicates any user, even if not logged in. |"]]