資訊清單結構
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁說明 Apps Script 專案的資訊清單檔案 JSON 資料結構頂層。
資訊清單的子結構是在不同的頁面中定義:
資訊清單
資訊清單設定的頂層。
JSON 表示法 |
{
"addOns": {
object (AddOns)
},
"dependencies": {
object (Dependencies)
},
"exceptionLogging": string,
"executionApi": {
object (ExecutionApi)
},
"oauthScopes": [
string
],
"runtimeVersion": string,
"sheets": {
object (Sheets)
},
"timeZone": string,
"urlFetchWhitelist": [
string
],
"webapp": {
object (Webapp)
}
} |
欄位 |
addOns |
object (AddOns)
專案的資源設定 (如果部署為
Google Workspace 外掛程式)。
|
dependencies |
object (Dependencies)
指令碼專案已啟用的
進階服務和程式庫設定。
|
exceptionLogging |
string
記錄例外狀況的位置。有效的設定如下:
|
executionApi |
object (ExecutionApi)
指令碼專案的 API 可執行設定。只有在專案已部署用於 API 執行作業時,才能使用這個屬性。
|
oauthScopes[] |
string
指令碼專案使用的授權範圍定義。
|
runtimeVersion |
string
指令碼使用的執行階段版本。如果資訊清單中沒有這個欄位,指令碼會使用預設執行階段 (STABLE )。這個欄位的有效選項如下:
STABLE 表示預設執行階段 (目前為 Rhino)。
V8 表示採用 V8 技術的執行階段。
DEPRECATED_ES5 表示 Rhino 執行階段。設定這個值也會防止自動遷移至 V8。
|
sheets |
object (Sheets)
定義
試算表巨集的資源設定。
|
timeZone |
string
指令碼時區 (位於其中一個可用的
ZoneId 值,例如「America/Denver」)。
|
urlFetchWhitelist[] |
string
HTTPS 網址前置字元清單。如果有的話,任何擷取到的網址端點都必須與這份清單中的其中一個前置字串相符。這麼做有助於保護使用者資料。此為測試部署作業的選填欄位,但對於部署作業來說為必填。進一步瞭解如何將網址加入許可清單。
|
webapp |
object (Webapp)
指令碼專案的網頁應用程式設定,只有在專案部署為網頁應用程式時才能使用設定。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-03-06 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]