Colors
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Để biết danh sách các phương thức cho tài nguyên này, hãy xem ở cuối trang.
Biểu diễn tài nguyên
{
"kind": "calendar#colors",
"updated": datetime,
"calendar": {
(key): {
"background": string,
"foreground": string
}
},
"event": {
(key): {
"background": string,
"foreground": string
}
}
}
Tên tài sản |
Giá trị |
Mô tả |
Ghi chú |
calendar |
object |
Một bảng màu chung gồm các màu lịch, ánh xạ từ mã màu đến định nghĩa tương ứng. Tài nguyên calendarListEntry tham chiếu đến một trong các mã nhận dạng màu sau trong trường colorId . Chỉ có thể đọc. |
|
calendar.(key) |
nested object |
Định nghĩa màu lịch. |
|
calendar.(key).background |
string |
Màu nền liên kết với định nghĩa màu này. |
|
calendar.(key).foreground |
string |
Màu nền trước có thể dùng để ghi lên trên nền sau có màu "background" . |
|
event |
object |
Một bảng màu chung gồm các màu sự kiện, ánh xạ từ mã màu đến định nghĩa của mã màu đó. Tài nguyên event có thể tham chiếu đến một trong các mã nhận dạng màu sau trong trường colorId . Chỉ có thể đọc. |
|
event.(key) |
nested object |
Định nghĩa màu sự kiện. |
|
event.(key).background |
string |
Màu nền liên kết với định nghĩa màu này. |
|
event.(key).foreground |
string |
Màu nền trước có thể dùng để ghi lên trên nền sau có màu "background" . |
|
kind |
string |
Loại tài nguyên ("calendar#colors "). |
|
updated |
datetime |
Thời gian sửa đổi gần đây nhất của bảng màu (dưới dạng dấu thời gian RFC3339). Chỉ có thể đọc. |
|
Phương thức
- nhận
- Trả về định nghĩa màu cho lịch và sự kiện.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],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."]]