Colors
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดูรายการเมธอดสำหรับทรัพยากรนี้ได้ที่ส่วนท้ายของหน้านี้
การนำเสนอแหล่งข้อมูล
{
"kind": "calendar#colors",
"updated": datetime,
"calendar": {
(key): {
"background": string,
"foreground": string
}
},
"event": {
(key): {
"background": string,
"foreground": string
}
}
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
หมายเหตุ |
calendar |
object |
ชุดสีของปฏิทินส่วนกลางโดยแมปจากรหัสสีไปยังคำจำกัดความ ทรัพยากร calendarListEntry อ้างอิงถึงรหัสสีรหัสใดรหัสหนึ่งเหล่านี้ในช่อง colorId อ่านอย่างเดียว |
|
calendar.(key) |
nested object |
คำจำกัดความของสีปฏิทิน |
|
calendar.(key).background |
string |
สีพื้นหลังที่เชื่อมโยงกับการกำหนดสีนี้ |
|
calendar.(key).foreground |
string |
สีพื้นหน้าที่สามารถใช้เขียนบนพื้นหลังที่มี "พื้นหลัง" สี |
|
event |
object |
ชุดสีของเหตุการณ์ส่วนกลาง จะแมปจากรหัสสีกับคําจํากัดความ ทรัพยากร event อาจอ้างถึงรหัสสีอย่างใดอย่างหนึ่งต่อไปนี้ในช่อง colorId อ่านอย่างเดียว |
|
event.(key) |
nested object |
คําจํากัดความสีของเหตุการณ์ |
|
event.(key).background |
string |
สีพื้นหลังที่เชื่อมโยงกับการกำหนดสีนี้ |
|
event.(key).foreground |
string |
สีพื้นหน้าที่สามารถใช้เขียนบนพื้นหลังที่มี "พื้นหลัง" สี |
|
kind |
string |
ประเภททรัพยากร ("calendar#colors ") |
|
updated |
datetime |
เวลาที่แก้ไขล่าสุดของชุดสี (เป็นการประทับเวลา RFC3339) อ่านอย่างเดียว |
|
เมธอด
- รับ
- แสดงผลการกำหนดสีสำหรับปฏิทินและกิจกรรม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 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."]]