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 |
前景色,可用于在“背景”的背景上写入内容color 决定。 |
|
event |
object |
一个全局调色板,其中包含从颜色 ID 到其定义的事件颜色。event 资源可以在其 colorId 字段中引用其中一个颜色 ID。只读。 |
|
event.(key) |
nested object |
事件颜色定义。 |
|
event.(key).background |
string |
与此颜色定义相关联的背景颜色。 |
|
event.(key).foreground |
string |
前景色,可用于在“背景”的背景上写入内容color 决定。 |
|
kind |
string |
资源的类型(“calendar#colors ”)。 |
|
updated |
datetime |
调色板的上次修改时间(以 RFC3339 时间戳表示)。只读。 |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Colors\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\n\u003cbr /\u003e\n\n```verilog\n{\n \"kind\": \"calendar#colors\",\n \"updated\": datetime,\n \"calendar\": {\n (key): {\n \"background\": string,\n \"foreground\": string\n }\n },\n \"event\": {\n (key): {\n \"background\": string,\n \"foreground\": string\n }\n }\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------------------|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `calendar` | `object` | A global palette of calendar colors, mapping from the color ID to its definition. A `calendarListEntry` resource refers to one of these color IDs in its `colorId` field. Read-only. | |\n| calendar.`(key)` | `nested object` | A calendar color definition. | |\n| calendar.(key).`background` | `string` | The background color associated with this color definition. | |\n| calendar.(key).`foreground` | `string` | The foreground color that can be used to write on top of a background with 'background' color. | |\n| `event` | `object` | A global palette of event colors, mapping from the color ID to its definition. An `event` resource may refer to one of these color IDs in its `colorId` field. Read-only. | |\n| event.`(key)` | `nested object` | An event color definition. | |\n| event.(key).`background` | `string` | The background color associated with this color definition. | |\n| event.(key).`foreground` | `string` | The foreground color that can be used to write on top of a background with 'background' color. | |\n| `kind` | `string` | Type of the resource (\"`calendar#colors`\"). | |\n| `updated` | `datetime` | Last modification time of the color palette (as a [RFC3339](https://tools.ietf.org/html/rfc3339) timestamp). Read-only. | |\n\nMethods\n-------\n\n[get](/workspace/calendar/api/v3/reference/colors/get)\n: Returns the color definitions for calendars and events."]]