Colors

このリソースのメソッドの一覧は、このページの最後に掲載されています。

リソースの表記

{
  "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 タイムスタンプ)。読み取り専用です。

Methods

get
カレンダーと予定のカラー定義を返します。