Acl
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源表示法
{
"kind": "calendar#aclRule",
"etag": etag,
"id": string,
"scope": {
"type": string,
"value": string
},
"role": string
}
属性名称 |
值 |
说明 |
备注 |
etag |
etag |
资源的 ETag。 |
|
id |
string |
访问控制列表 (ACL) 规则的标识符。请参阅共享日历。 |
|
kind |
string |
资源的类型(“calendar#aclRule ”)。 |
|
role |
string |
为范围分配的角色。可能的值包括:- “
none ”- 未提供访问权限。 - “
freeBusyReader ”- 提供对有空/忙碌信息的读取权限。 - “
reader ”- 提供对日历的读取权限。不公开的活动会向拥有读者访问权限的用户显示,但活动详情会被隐藏。 - “
writer ”- 提供对日历的读写权限。私密活动会向拥有写入者访问权限的用户显示,并且活动详情会显示。 - “
owner ”- 提供日历的所有权。此角色具有写入者角色的所有权限,还可以查看和处理 ACL。
|
可写入
|
scope |
object |
此 ACL 规则授予日历访问权限的程度。 |
|
scope.type |
string |
范围的类型。可能的值包括:- “
default ”- 公共范围。这是默认值。 - “
user ”- 将范围限制为单个用户。 - “
group ”- 将范围限制为组。 - “
domain ”- 将范围限定在网域内。 注意:授予“default ”范围(或公开范围)的权限适用于任何用户(无论是否经过身份验证)。 |
|
scope.value |
string |
用户或群组的电子邮件地址或者域名,具体取决于范围类型。对于“default ”类型省略。 |
可写入
|
方法
- delete
- 删除访问权限控制规则。
- get
- 返回访问权限控制规则。
- 插入
- 创建访问权限控制规则。
- list
- 返回日历访问控制列表中的规则。
- 补丁程序
- 更新访问权限控制规则。此方法支持补丁语义。请注意,每个修补请求消耗三个配额单元;首选使用
get
,后跟 update
。您指定的字段值会替换现有值。未在请求中指定的字段保持不变。如果指定数组字段,则覆盖现有数组;这会舍弃之前的所有数组元素。
- update
- 更新访问权限控制规则。
- 手表
- 留意 ACL 资源的更改。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-01-26。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]