用於定義 Google Workspace 外掛程式內容和行為的資源設定。Google Workspace 外掛程式資訊清單必須標示所有「必要」元件。
AddOns
Google Workspace 外掛程式資訊清單的頂層設定。
| JSON 表示法 | 
|---|
| {
  "common": {
    object (Common)
  },
  "calendar": {
    object (Calendar)
  },
  "chat": {
    object (Chat)
  },
  "drive": {
    object (Drive)
  },
  "gmail": {
    object (Gmail)
  },
  "docs": {
    object (Docs)
  },
  "sheets": {
    object (Sheets)
  },
  "slides": {
    object (Slides)
  },
  "meet": {
    object (Meet)
  }
} | 
| 欄位 | |
|---|---|
| common | 
 必要。定義每個主機應用程式通用的 Google Workspace 外掛程式值。如果省略特定主機的值,系統會使用這裡定義的部分值做為預設值。 | 
| calendar | 
 如果 Google Workspace 外掛程式會擴充 Google 日曆,則必須提供這項資訊。 設定 Google Workspace 外掛程式在 Google 日曆主機應用程式中的外觀和行為。如果省略這個欄位,Google 日曆會停用外掛程式。 | 
| chat | 
 如果 Google Workspace 外掛程式會擴充 Chat,則必須提供這項資訊。 Google Chat 應用程式的設定。如果省略這個欄位,外掛程式會在 Google Chat 中停用。 
 | 
| drive | 
 如果 Google Workspace 外掛程式會擴充雲端硬碟功能,則必須提供這項資訊。 Google Workspace 外掛程式在雲端硬碟主機應用程式中的外觀和行為設定。如果省略這個欄位,外掛程式會在雲端硬碟中停用。 | 
| gmail | 
 如果 Google Workspace 外掛程式會擴充 Gmail,則必須提供這項資訊。 在 Gmail 主機應用程式中,設定 Google Workspace 外掛程式的外觀和行為。如果省略這個欄位,Gmail 會停用外掛程式。 | 
| docs | 
 如果 Google Workspace 外掛程式會擴充 Google 文件,則必須提供這項資訊。 Google Workspace 外掛程式在 Google 文件主機應用程式中的外觀和行為設定。如果省略這個欄位,外掛程式會在 Google 文件中停用。 | 
| sheets | 
 如果 Google Workspace 外掛程式會擴充 Google 試算表,則必須提供這項資訊。 Google Workspace 外掛程式在 Google 試算表主機應用程式中的外觀和行為設定。如果省略這個欄位,系統會在 Google 試算表中停用外掛程式。 | 
| slides | 
 如果 Google Workspace 外掛程式會擴充 Google 簡報的功能,則必須提供這項資訊。 Google Workspace 外掛程式在簡報主機應用程式中的外觀和行為設定。如果省略這個欄位,系統會在 Google 簡報中停用外掛程式。 | 
| meet | 
 如果 Google Workspace 外掛程式會擴充 Meet 功能,則必須提供這項資訊。 設定 Google Workspace 外掛程式在 Meet 主機應用程式中的外觀和行為。如果省略這個欄位,系統會在 Meet 中停用外掛程式。 | 
通用
適用於每個主機應用程式的常見參數資訊清單設定。如果特定主機省略特定值,系統會使用這裡定義的部分值做為預設值。
| JSON 表示法 | 
|---|
| {
  "homepageTrigger": {
    object (HomepageTrigger)
  },
  "layoutProperties": {
    object (LayoutProperties)
  },
  "logoUrl": string,
  "name": string,
  "openLinkUrlPrefixes": [
    string
  ],
  "universalActions": [
    {
      object (UniversalAction)
    }
  ],
  "useLocaleFromApp": boolean
} | 
| 欄位 | |
|---|---|
| homepageTrigger | 
 | 
| layoutProperties | 
 | 
| logoUrl | 
 必要。工具列中顯示的圖片網址。網址必須公開。 | 
| name | 
 必要。工具列中顯示的外掛程式名稱。 | 
| openLinkUrlPrefixes[] | 
 如果外掛程式顯示任何外送連結,無論是使用 
             詳情請參閱「 將網址加入允許清單」。 | 
| universalActions[] | 
 | 
| useLocaleFromApp | 
 如果  詳情請參閱「 存取使用者語言代碼和時區」。 | 
LayoutProperties
這項設定可控管 Google Workspace 外掛程式工具列、按鈕顏色和外觀。
| JSON 表示法 | 
|---|
| {
  "primaryColor": string,
  "secondaryColor": string
} | 
| 欄位 | |
|---|---|
| primaryColor | 
 | 
| secondaryColor | 
 | 
UniversalAction
通用動作的設定。 選取通用動作後,系統會開啟指定的網址連結,或執行指定的 Apps Script 函式。
| JSON 表示法 | 
|---|
| { "label": string, // Union field rule can be only one of the following: "openLink": string, "runFunction": string, // End of list of possible types for union field rule. } | 
| 欄位 | |
|---|---|
| label | 
 | 
| openLink | 
 runFunction,則每個通用動作都必須提供這項屬性。如果提供網址,使用者選取這項動作時,系統會在分頁中開啟該網址。 | 
| runFunction | 
 openLink,則每個通用動作都必須提供這項屬性。如果提供,使用者選取這項動作時執行的 Apps Script 函式名稱。詳情請參閱 通用動作指南。 |