slides (v1)
PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.
CODEBLOCK0
API Resources
presentations
- batchUpdate — Applies one or more updates to the presentation. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests.
- create — Creates a blank presentation using the title given in the request. If a presentationId is provided, it is used as the ID of the new presentation. Otherwise, a new ID is generated. Other fields in the request, including any provided content, are ignored. Returns the created presentation.
- get — Gets the latest version of the specified presentation.
- pages — Operations on the 'pages' resource
Discovering Commands
Before calling any API method, inspect it:
CODEBLOCK1
Use gws schema output to build your --params and --json flags.
slides (v1)
前置条件: 阅读 ../gws-shared/SKILL.md 了解认证、全局标志和安全规则。如果该文件缺失,请运行 gws generate-skills 创建。
bash
gws slides <资源> <方法> [标志]
API 资源
presentations
- batchUpdate — 对演示文稿应用一个或多个更新。每个请求在应用前都会经过验证。如果任何请求无效,则整个请求将失败且不会应用任何更新。部分请求会返回回复,提供关于应用方式的信息。其他请求无需返回信息,这些请求各自返回空回复。回复的顺序与请求的顺序一致。
- create — 使用请求中给定的标题创建空白演示文稿。如果提供了 presentationId,则将其用作新演示文稿的 ID。否则,将生成新的 ID。请求中的其他字段(包括任何提供的内容)将被忽略。返回创建的演示文稿。
- get — 获取指定演示文稿的最新版本。
- pages — 对 pages 资源的操作
发现命令
在调用任何 API 方法之前,请先检查该方法:
bash
浏览资源和方法
gws slides --help
检查方法的必需参数、类型和默认值
gws schema slides.<资源>.<方法>
使用 gws schema 的输出构建您的 --params 和 --json 标志。