Acl
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.
Để xem danh sách phương thức cho tài nguyên này, hãy xem phần cuối trang này.
Biểu thị tài nguyên
{
"kind": "calendar#aclRule",
"etag": etag,
"id": string,
"scope": {
"type": string,
"value": string
},
"role": string
}
Tên tài sản |
Giá trị |
Mô tả |
Ghi chú |
etag |
etag |
ETag của tài nguyên. |
|
id |
string |
Giá trị nhận dạng của quy tắc Danh sách kiểm soát quyền truy cập (ACL). Xem bài viết Chia sẻ lịch. |
|
kind |
string |
Loại tài nguyên ("calendar#aclRule "). |
|
role |
string |
Vai trò được chỉ định cho phạm vi. Các giá trị có thể có là: - "
none " – Không cấp quyền truy cập. - "
freeBusyReader " – Cấp quyền đọc thông tin về lịch trống/bận. - "
reader " – Cung cấp quyền đọc vào lịch. Sự kiện riêng tư sẽ xuất hiện với những người dùng có quyền đọc, nhưng thông tin chi tiết về sự kiện sẽ bị ẩn. - "
writer " – Cung cấp quyền đọc và ghi vào lịch. Sự kiện riêng tư sẽ xuất hiện với những người dùng có quyền truy cập của người viết và họ sẽ thấy thông tin chi tiết về sự kiện. Cung cấp quyền đọc đối với ACL của lịch. - "
owner " – Cung cấp quyền sở hữu lịch. Vai trò này có tất cả quyền của vai trò người ghi, đồng thời có thêm khả năng thao tác với ACL. |
writable
|
scope |
object |
Mức độ quyền truy cập vào lịch được cấp theo quy tắc ACL này. |
|
scope.type |
string |
Loại phạm vi. Các giá trị có thể có là: - "
default " – Phạm vi công khai. Đây là giá trị mặc định. - "
user " – Giới hạn phạm vi ở một người dùng. - "
group " – Giới hạn phạm vi ở một nhóm. - "
domain " – Giới hạn phạm vi ở một miền. Lưu ý: Các quyền được cấp cho phạm vi "default " hoặc công khai áp dụng cho mọi người dùng, dù đã xác thực hay chưa. |
|
scope.value |
string |
Địa chỉ email của người dùng hoặc nhóm hoặc tên của miền, tuỳ thuộc vào loại phạm vi. Bỏ qua đối với loại "default ". |
writable
|
Phương thức
- xóa
- Xoá một quy tắc kiểm soát quyền truy cập.
- get
- Trả về một quy tắc kiểm soát quyền truy cập.
- chèn
- Tạo quy tắc kiểm soát quyền truy cập.
- list
- Trả về các quy tắc trong danh sách kiểm soát quyền truy cập cho lịch.
- bản vá
- Cập nhật quy tắc kiểm soát quyền truy cập. Phương thức này hỗ trợ ngữ nghĩa bản vá. Xin lưu ý rằng mỗi yêu cầu vá sẽ tiêu thụ 3 đơn vị hạn mức; ưu tiên sử dụng
get
theo sau là update
. Giá trị trường mà bạn chỉ định sẽ thay thế các giá trị hiện có. Các trường mà bạn không chỉ định trong yêu cầu sẽ không thay đổi. Các trường mảng, nếu được chỉ định, sẽ ghi đè các mảng hiện có; thao tác này sẽ loại bỏ mọi phần tử mảng trước đó.
- update
- Cập nhật quy tắc kiểm soát quyền truy cập.
- watch
- Theo dõi các thay đổi đối với tài nguyên ACL.
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,["# 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."]]