为什么某些 Google Sheets API v4 函数没有记录在案?

Why are some Google Sheets API v4 functions not documented?

我试图了解 Google Sheet API v4 works, so I check the sample codes provided by Google for the API methods. When looking at the examples for Google Apps Script (e.g. batchUpdate),我找到了这个方法,Sheets.newUpdateSpreadsheetPropertiesRequest(),还有更多 - 都以前缀 new 开头。我已经搜索过了,但我找不到文档中任何地方描述的这些方法。

这对我来说不如电子表格服务 (SpreadsheetApp) 的行为那么清楚。

我是不是漏掉了什么,或者 REST API 没有详细记录?

高级服务 API 是其相应 REST API 的包装器。 new前缀的方法是各自API中对应资源对象的构造函数(主要用于自动补全)

例如 Sheets.newUpdateSpreadsheetPropertiesRequest() 相当于 UpdateSpreadsheetPropertiesRequest 对象。这需要一些时间来适应,但请花一些时间浏览文档。它最终会开始有意义。