gws-keep

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

keep (v1)

keep (v1)

PREREQUISITE: Read
../gws-shared/SKILL.md
for auth, global flags, and security rules. If missing, run
gws generate-skills
to create it.
bash
gws keep <resource> <method> [flags]
前置要求: 阅读
../gws-shared/SKILL.md
了解认证、全局标志和安全规则。如果该文件缺失,请运行
gws generate-skills
来创建它。
bash
gws keep <resource> <method> [flags]

API Resources

API 资源

media

media

  • download
    — 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错误请求。

notes

notes

  • create
    — Creates a new note.
    • delete
      — Deletes a note. Caller must have the
      OWNER
      role on the note to delete. Deleting a note removes the resource immediately and cannot be undone. Any collaborators will lose access to the note.
    • get
      — Gets a note.
    • list
      — Lists notes. Every list call returns a page of results with
      page_size
      as the upper bound of returned items. A
      page_size
      of zero allows the server to choose the upper bound. The ListNotesResponse contains at most
      page_size
      entries. If there are more things left to list, it provides a
      next_page_token
      value. (Page tokens are opaque values.) To get the next page of results, copy the result's
      next_page_token
      into the next request's
      page_token
      .
    • permissions
      — Operations on the 'permissions' resource
  • create
    — 创建新笔记。
    • delete
      — 删除笔记。调用者必须拥有笔记的
      OWNER
      角色才能删除。删除笔记会立即移除该资源,且无法撤销。所有协作者将失去对该笔记的访问权限。
    • get
      — 获取单条笔记。
    • list
      — 列出笔记。每次列表调用都会返回一页结果,
      page_size
      是返回条目的上限。若
      page_size
      设为0,由服务器选择上限。ListNotesResponse最多包含
      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
undefined

Browse 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`标志。