Web 应用和 API 可执行文件清单资源
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
用于定义 Web 应用和 API 可执行文件的资源配置。
Web 应用
脚本项目的 Web 应用配置,仅在项目
部署为 Web 应用
JSON 表示法 |
{
"access": string,
"executeAs": string
} |
字段 |
access |
string
运行 Web 应用的权限级别。有效设置
如下:
MYSELF 仅表示部署了应用的用户
运行它
DOMAIN 表示仅与
让部署用户能够运行它
ANYONE 表示任何已登录的用户。
ANYONE_ANONYMOUS 表示任何用户,即使不是
已登录。
|
executeAs |
string
Web 应用执行时使用的身份。有效的
设置如下:
USER_ACCESSING 表示 Web 应用以
访问该文档的用户。
USER_DEPLOYING 表示 Web 应用以
部署应用的用户
|
ExecutionApi
脚本项目的 API 可执行配置。只有当
项目以进行 API 执行。
JSON 表示法 |
{
"access": string
} |
字段 |
access |
string
确定谁有权通过 API 运行脚本。通过
有效设置如下:
MYSELF 仅表示部署
脚本可以运行它。
DOMAIN 表示仅与
让部署用户能够运行它
ANYONE 表示任何已登录的用户。
ANYONE_ANONYMOUS 表示任何用户,即使不是
已登录。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]