gws-keep
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesekeep (v1)
keep (v1)
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
bash
gws keep <resource> <method> [flags]前置要求: 阅读了解认证、全局标志和安全规则。如果该文件缺失,请运行../gws-shared/SKILL.md来创建它。gws generate-skills
bash
gws keep <resource> <method> [flags]API Resources
API 资源
media
media
- — Gets an attachment. To download attachment media via REST requires the alt=media query parameter. Returns a 400 bad request error if attachment media is not available in the requested MIME type.
download
- — 获取附件。通过REST下载附件媒体需要使用alt=media查询参数。如果请求的MIME类型下没有可用的附件媒体,将返回400错误请求。
download
notes
notes
- — Creates a new note.
create- — Deletes a note. Caller must have the
deleterole on the note to delete. Deleting a note removes the resource immediately and cannot be undone. Any collaborators will lose access to the note.OWNER - — Gets a note.
get - — Lists notes. Every list call returns a page of results with
listas the upper bound of returned items. Apage_sizeof zero allows the server to choose the upper bound. The ListNotesResponse contains at mostpage_sizeentries. If there are more things left to list, it provides apage_sizevalue. (Page tokens are opaque values.) To get the next page of results, copy the result'snext_page_tokeninto the next request'snext_page_token.page_token - — Operations on the 'permissions' resource
permissions
- — 创建新笔记。
create- — 删除笔记。调用者必须拥有笔记的
delete角色才能删除。删除笔记会立即移除该资源,且无法撤销。所有协作者将失去对该笔记的访问权限。OWNER - — 获取单条笔记。
get - — 列出笔记。每次列表调用都会返回一页结果,
list是返回条目的上限。若page_size设为0,由服务器选择上限。ListNotesResponse最多包含page_size个条目。如果还有更多内容可列出,会提供一个page_size值(页面令牌是不透明值)。要获取下一页结果,将结果中的next_page_token复制到下一次请求的next_page_token中。page_token - — 对'permissions'资源的操作
permissions
Discovering Commands
命令探索
Before calling any API method, inspect it:
bash
undefined在调用任何API方法之前,请先查看其详情:
bash
undefinedBrowse resources and methods
浏览资源和方法
gws keep --help
gws keep --help
Inspect a method's required params, types, and defaults
查看方法的必填参数、类型和默认值
gws schema keep.<resource>.<method>
Use `gws schema` output to build your `--params` and `--json` flags.gws schema keep.<resource>.<method>
使用`gws schema`的输出来构建你的`--params`和`--json`标志。