Resource manifes aplikasi web dan API yang dapat dieksekusi
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Konfigurasi resource yang digunakan untuk menentukan file yang dapat dieksekusi di aplikasi web dan API.
Aplikasi web
Konfigurasi aplikasi web project skrip, yang hanya digunakan jika project
di-deploy sebagai aplikasi web.
Representasi JSON |
{
"access": string,
"executeAs": string
} |
Kolom |
access |
string
Tingkat izin untuk menjalankan aplikasi web. Setelan yang valid
adalah sebagai berikut:
MYSELF hanya menunjukkan pengguna yang men-deploy aplikasi
dapat menjalankannya.
DOMAIN hanya menunjukkan pengguna di domain yang sama dengan
pengguna deployment dapat menjalankannya.
ANYONE menunjukkan pengguna yang login.
ANYONE_ANONYMOUS menunjukkan pengguna, meskipun tidak
sedang login.
|
executeAs |
string
Identitas yang digunakan aplikasi web untuk dijalankan. Parameter
setelannya adalah sebagai berikut:
USER_ACCESSING menunjukkan bahwa aplikasi web berjalan sebagai
yang mengaksesnya.
USER_DEPLOYING menunjukkan bahwa aplikasi web berjalan sebagai
pengguna yang men-deploy aplikasi tersebut.
|
ExecutionApi
Konfigurasi API project skrip yang dapat dieksekusi. Metode ini hanya digunakan jika
di-deploy untuk eksekusi API.
Representasi JSON |
{
"access": string
} |
Kolom |
access |
string
Menentukan siapa yang memiliki izin untuk menjalankan skrip dari API. Tujuan
setelan yang valid adalah sebagai berikut:
MYSELF hanya menunjukkan pengguna yang men-deploy
skrip dapat menjalankannya.
DOMAIN hanya menunjukkan pengguna di domain yang sama dengan
pengguna deployment dapat menjalankannya.
ANYONE menunjukkan pengguna yang login.
ANYONE_ANONYMOUS menunjukkan pengguna, meskipun tidak
sedang login.
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\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. |"]]