gws-forms

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

forms (v1)

forms (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 forms <resource> <method> [flags]
前置要求: 阅读
../gws-shared/SKILL.md
了解认证、全局标志和安全规则。如果该文件缺失,请运行
gws generate-skills
命令创建它。
bash
gws forms <resource> <method> [flags]

API Resources

API资源

forms

forms

  • batchUpdate
    — Change the form with a batch of updates.
    • create
      — Create a new form using the title given in the provided form message in the request. Important: Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items.
    • get
      — Get a form.
    • setPublishSettings
      — Updates the publish settings of a form. Legacy forms aren't supported because they don't have the
      publish_settings
      field.
    • responses
      — Operations on the 'responses' resource
    • watches
      — Operations on the 'watches' resource
  • batchUpdate
    — 批量更新表单内容。
    • create
      — 使用请求中提供的表单消息里的标题创建新表单。重要提示: 仅会将form.info.title和form.info.document_title字段复制到新表单。包括表单描述、项目和设置在内的所有其他字段均不允许设置。要创建新表单并添加项目,您必须先调用forms.create创建一个带标题(可选包含文档标题)的空表单,然后调用forms.update添加项目。
    • get
      — 获取表单信息。
    • setPublishSettings
      — 更新表单的发布设置。不支持旧版表单,因为它们没有
      publish_settings
      字段。
    • responses
      — 对“responses”资源的操作
    • watches
      — 对“watches”资源的操作

Discovering Commands

命令探索

Before calling any API method, inspect it:
bash
undefined
在调用任何API方法之前,请先查看其详情:
bash
undefined

Browse resources and methods

浏览资源和方法

gws forms --help
gws forms --help

Inspect a method's required params, types, and defaults

查看某个方法的必填参数、类型和默认值

gws schema forms.<resource>.<method>

Use `gws schema` output to build your `--params` and `--json` flags.
gws schema forms.<resource>.<method>

使用`gws schema`的输出来构建您的`--params`和`--json`标志。