如需本資源的方法清單,請見本頁結尾。
資源表示法
{
  "kind": "calendar#colors",
  "updated": datetime,
  "calendar": {
    (key): {
      "background": string,
      "foreground": string
    }
  },
  "event": {
    (key): {
      "background": string,
      "foreground": string
    }
  }
}| 屬性名稱 | 值 | 說明 | 附註 | 
|---|---|---|---|
calendar | 
        object | 
        日曆顏色的全球調色盤,從顏色 ID 對應至其定義。calendarListEntry 資源在 colorId 欄位中參照其中一個顏色 ID。唯讀。 | 
        |
calendar.(key) | 
        nested object | 
        日曆顏色定義。 | |
calendar.(key).background | 
        string | 
        與此色彩定義相關聯的背景顏色。 | |
calendar.(key).foreground | 
        string | 
        用來在背景上寫入「背景」的前景顏色顏色。 | |
event | 
        object | 
        事件顏色的全球調色盤,從顏色 ID 對應至其定義。event 資源可以在 colorId 欄位中參照其中一個顏色 ID。唯讀。 | 
        |
event.(key) | 
        nested object | 
        事件顏色定義。 | |
event.(key).background | 
        string | 
        與此色彩定義相關聯的背景顏色。 | |
event.(key).foreground | 
        string | 
        用來在背景上寫入「背景」的前景顏色顏色。 | |
kind | 
        string | 
        資源類型 (「calendar#colors」)。 | 
        |
updated | 
        datetime | 
        調色盤的上次修改時間 (以 RFC3339 時間戳記為準)。唯讀。 | 
方法
- 取得
 - 傳回日曆和活動的顏色定義。