Acl
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源表示法
{
"kind": "calendar#aclRule",
"etag": etag,
"id": string,
"scope": {
"type": string,
"value": string
},
"role": string
}
屬性名稱 |
值 |
說明 |
附註 |
etag |
etag |
資源的 ETag。 |
|
id |
string |
存取控制清單 (ACL) 規則的 ID。請參閱「共用日曆」。 |
|
kind |
string |
資源類型 (「calendar#aclRule 」)。 |
|
role |
string |
指派給範圍的角色。可能的值包括: - 「
none 」- 不提供存取權。 - 「
freeBusyReader 」:提供空閒/忙碌資訊的讀取權。 - 「
reader 」:提供日曆的讀取存取權。私人活動會向具有讀取權限的使用者顯示,但活動詳細資料會隱藏。 - 「
writer 」:提供日曆的讀取及寫入存取權。私人活動會顯示給擁有編輯者存取權的使用者,且可查看活動詳細資料。提供日曆的 ACL 讀取權。 - 「
owner 」:提供日曆的擁有權。這個角色具有「作者」角色的所有權限,並可額外操作 ACL。 |
可寫入 |
scope |
object |
這項 ACL 規則授予的日曆存取權程度。 |
|
scope.type |
string |
範圍的類型。可能的值包括: - 「
default 」- 公開範圍。這是預設值。 - 「
user 」:將範圍限制為單一使用者。 - 「
group 」:將範圍限制為群組。 - 「
domain 」- 將範圍限制為一個網域。 注意:授予「default 」或公開範圍的權限,會套用至任何使用者 (無論是否經過驗證)。 |
|
scope.value |
string |
使用者或群組的電子郵件地址,或網域名稱 (視範圍類型而定)。對於類型「default 」,則省略。 |
可寫入 |
方法
- 刪除
- 刪除存取控管規則。
- get
- 傳回存取權控管規則。
- 插入
- 建立存取權控管規則。
- list
- 會傳回日曆的存取控制清單中的規則。
- patch
- 更新存取權控管規則。這個方法支援 patch 語意。請注意,每個修補要求都會消耗三個配額單位;建議使用
get
後接 update
。您指定的欄位值會取代現有值。您在要求中未指定的欄位會維持不變。如果指定陣列欄位,系統會覆寫現有的陣列,並捨棄任何先前的陣列元素。
- update
- 更新存取權控管規則。
- watch
- 監控 ACL 資源的變更。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Acl\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```carbon\n{\n \"kind\": \"calendar#aclRule\",\n \"etag\": etag,\n \"id\": string,\n \"scope\": {\n \"type\": string,\n \"value\": string\n },\n \"role\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|\n| `etag` | `etag` | ETag of the resource. | |\n| `id` | `string` | Identifier of the Access Control List (ACL) rule. See [Sharing calendars](https://developers.google.com/workspace/calendar/concepts/sharing#sharing_calendars). | |\n| `kind` | `string` | Type of the resource (\"`calendar#aclRule`\"). | |\n| `role` | `string` | The role assigned to the scope. Possible values are: - \"`none`\" - Provides no access. - \"`freeBusyReader`\" - Provides read access to free/busy information. - \"`reader`\" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - \"`writer`\" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. Provides read access to the calendar's ACLs. - \"`owner`\" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to manipulate ACLs. | writable |\n| `scope` | `object` | The extent to which [calendar access](https://developers.google.com/workspace/calendar/concepts/sharing#sharing_calendars) is granted by this ACL rule. | |\n| scope.`type` | `string` | The type of the scope. Possible values are: - \"`default`\" - The public scope. This is the default value. - \"`user`\" - Limits the scope to a single user. - \"`group`\" - Limits the scope to a group. - \"`domain`\" - Limits the scope to a domain. Note: The permissions granted to the \"`default`\", or public, scope apply to any user, authenticated or not. | |\n| scope.`value` | `string` | The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type \"`default`\". | writable |\n\nMethods\n-------\n\n[delete](/workspace/calendar/api/v3/reference/acl/delete)\n: Deletes an access control rule.\n\n[get](/workspace/calendar/api/v3/reference/acl/get)\n: Returns an access control rule.\n\n[insert](/workspace/calendar/api/v3/reference/acl/insert)\n: Creates an access control rule.\n\n[list](/workspace/calendar/api/v3/reference/acl/list)\n: Returns the rules in the access control list for the calendar.\n\n[patch](/workspace/calendar/api/v3/reference/acl/patch)\n: Updates an access control rule. This method supports patch semantics. Note that each patch request consumes three quota units; prefer using a `get` followed by an `update`. The field values you specify replace the existing values. Fields that you don't specify in the request remain unchanged. Array fields, if specified, overwrite the existing arrays; this discards any previous array elements.\n\n[update](/workspace/calendar/api/v3/reference/acl/update)\n: Updates an access control rule.\n\n[watch](/workspace/calendar/api/v3/reference/acl/watch)\n: Watch for changes to ACL resources."]]