gws-calendar
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecalendar (v3)
calendar (v3)
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
bash
gws calendar <resource> <method> [flags]前置要求: 阅读了解认证、全局标志和安全规则。如果缺少该文件,请运行../gws-shared/SKILL.md来创建它。gws generate-skills
bash
gws calendar <resource> <method> [flags]Helper Commands
辅助命令
| Command | Description |
|---|---|
| create a new event |
| Show upcoming events across all calendars |
| 命令 | 描述 |
|---|---|
| 创建新活动 |
| 显示所有日历中的即将到来的活动 |
API Resources
API资源
acl
acl
- — Deletes an access control rule.
delete- — Returns an access control rule.
get - — Creates an access control rule.
insert - — Returns the rules in the access control list for the calendar.
list - — Updates an access control rule. This method supports patch semantics.
patch - — Updates an access control rule.
update - — Watch for changes to ACL resources.
watch
- — 删除一条访问控制规则。
delete- — 返回一条访问控制规则。
get - — 创建一条访问控制规则。
insert - — 返回日历访问控制列表中的规则。
list - — 更新一条访问控制规则。该方法支持patch语义。
patch - — 更新一条访问控制规则。
update - — 监控ACL资源的变更。
watch
calendarList
calendarList
- — Removes a calendar from the user's calendar list.
delete- — Returns a calendar from the user's calendar list.
get - — Inserts an existing calendar into the user's calendar list.
insert - — Returns the calendars on the user's calendar list.
list - — Updates an existing calendar on the user's calendar list. This method supports patch semantics.
patch - — Updates an existing calendar on the user's calendar list.
update - — Watch for changes to CalendarList resources.
watch
- — 从用户的日历列表中移除一个日历。
delete- — 返回用户日历列表中的一个日历。
get - — 将现有日历插入到用户的日历列表中。
insert - — 返回用户日历列表中的所有日历。
list - — 更新用户日历列表中的现有日历。该方法支持patch语义。
patch - — 更新用户日历列表中的现有日历。
update - — 监控CalendarList资源的变更。
watch
calendars
calendars
- — Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.
clear- — Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.
delete - — Returns metadata for a calendar.
get - — Creates a secondary calendar. The authenticated user for the request is made the data owner of the new calendar.
insert
Note: We recommend to authenticate as the intended data owner of the calendar. You can use domain-wide delegation of authority to allow applications to act on behalf of a specific user. Don't use a service account for authentication. If you use a service account for authentication, the service account is the data owner, which can lead to unexpected behavior.
- — Updates metadata for a calendar. This method supports patch semantics.
patch - — Updates metadata for a calendar.
update
- — 清空主日历。此操作会删除与账户主日历关联的所有活动。
clear- — 删除一个次要日历。请使用calendars.clear来清空主日历的所有活动。
delete - — 返回日历的元数据。
get - — 创建一个次要日历。 请求的已认证用户将成为新日历的数据所有者。
insert
注意:我们建议以日历的目标数据所有者身份进行认证。您可以使用全域权限委托来允许应用代表特定用户操作。不要使用服务账户进行认证。如果使用服务账户认证,服务账户将成为数据所有者,这可能会导致意外行为。
- — 更新日历的元数据。该方法支持patch语义。
patch - — 更新日历的元数据。
update
channels
channels
- — Stop watching resources through this channel
stop
- — 停止通过此通道监控资源
stop
colors
colors
- — Returns the color definitions for calendars and events.
get
- — 返回日历和活动的颜色定义。
get
events
events
- — Deletes an event.
delete- — Returns an event based on its Google Calendar ID. To retrieve an event using its iCalendar ID, call the events.list method using the iCalUID parameter.
get - — Imports an event. This operation is used to add a private copy of an existing event to a calendar. Only events with an eventType of default may be imported. Deprecated behavior: If a non-default event is imported, its type will be changed to default and any event-type-specific properties it may have will be dropped.
import - — Creates an event.
insert - — Returns instances of the specified recurring event.
instances - — Returns events on the specified calendar.
list - — Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; birthday, focusTime, fromGmail, outOfOffice and workingLocation events cannot be moved.
move - — Updates an event. This method supports patch semantics.
patch - — Creates an event based on a simple text string.
quickAdd - — Updates an event.
update - — Watch for changes to Events resources.
watch
- — 删除一个活动。
delete- — 根据Google Calendar ID返回一个活动。要使用iCalendar ID检索活动,请调用events.list方法并使用iCalUID参数。
get - — 导入一个活动。此操作用于将现有活动的私有副本添加到日历中。只有eventType为default的活动可以被导入。 已弃用行为:如果导入非默认类型的活动,其类型将被更改为default,并且所有特定于该活动类型的属性将被丢弃。
import - — 创建一个活动。
insert - — 返回指定 recurring 活动的实例。
instances - — 返回指定日历上的活动。
list - — 将活动移动到另一个日历,即更改活动的组织者。请注意,只有默认类型的活动可以被移动;生日、focusTime、来自Gmail、外出和工作地点活动无法被移动。
move - — 更新一个活动。该方法支持patch语义。
patch - — 根据简单文本字符串创建活动。
quickAdd - — 更新一个活动。
update - — 监控Events资源的变更。
watch
freebusy
freebusy
- — Returns free/busy information for a set of calendars.
query
- — 返回一组日历的空闲/忙碌信息。
query
settings
settings
- — Returns a single user setting.
get- — Returns all user settings for the authenticated user.
list - — Watch for changes to Settings resources.
watch
- — 返回单个用户设置。
get- — 返回已认证用户的所有用户设置。
list - — 监控Settings资源的变更。
watch
Discovering Commands
探索命令
Before calling any API method, inspect it:
bash
undefined在调用任何API方法之前,请先查看其详情:
bash
undefinedBrowse resources and methods
浏览资源和方法
gws calendar --help
gws calendar --help
Inspect a method's required params, types, and defaults
查看方法的必填参数、类型和默认值
gws schema calendar.<resource>.<method>
Use `gws schema` output to build your `--params` and `--json` flags.gws schema calendar.<resource>.<method>
使用`gws schema`的输出来构建您的`--params`和`--json`标志。