Google 驱动器自定义文件属性限制

Google Drive Custom file Properties limitation

有人请解释下面描述的“totaled from all sources”的意思吗 https://developers.google.com/drive/api/guides/properties

Maximum of 100 custom properties per file, totaled from all sources.
Maximum of 30 public properties per file, totaled from all sources.
Maximum of 30 private properties per file from any one application.

我的意图是在驱动器文件中存储 30 多个属性,并且能够与所有共享用户一起搜索。 是否可以使用驱动器属性 api?

totaled from all sources 指的是已添加到文件中的任何 属性,无论使用哪个应用程序。

也就是说,一个文件最多可以有:

  • 30 public 个属性(即对所有应用程序可见)(字段 properties)。
  • 每个应用 30 个私有属性(字段 appProperties)。
  • 总共 100 个属性(计算 public 和私有属性)。

也就是说,每个应用程序可以有 30 public properties 加上 30 appProperties总最大值为 100

当达到这些限制时,API returns 会出现以下错误消息:

The file's property and app property limit has been reached. Files can have up to 30 properties and 30 app properties per app, with a maximum of 100 in total.

参考: