确定要跟踪的更改日志
用户和共享云端硬盘更改日志在更改和修订概览中进行了定义。本指南详细介绍了各项更改日志条目,并提供了有关何时在用户更改日志或共享云端硬盘更改日志中跟踪更改的提示。
在文件移至共享云端硬盘后更改条目
将文件移至共享云端硬盘后,共享云端硬盘更改日志会继续记录该文件的更改,而非用户更改日志。然后,您应查询共享云端硬盘更改日志,以检测该项的新更改。
更改共享云端硬盘中各个内容的条目
如果向非成员授予对共享云端硬盘中个别内容的文件访问权限,系统会在用户更改日志中跟踪对这些内容所做的更改,而不是在共享云端硬盘更改日志中跟踪。此行为与直接与用户共享的非共享云端硬盘内容相同。
更改了因访问权限丢失而导致的条目
如果用户失去对某个文件的访问权限,更改日志条目将显示 deleted
。不过,其他仍有权访问该文件的用户仍然可以访问该文件。如果为所有用户删除了该项,则该项会在所有用户更改日志中被标记为 deleted
。
当文件在用户语料库之间移动时,即使用户仍保有对文件的访问权限,也可能会显示 deleted
。如果您查询多个语料库的更改日志,请使用 Changes.list 中的 includeCorpusRemovals
参数来区分语料库迁移和访问权限丢失。如需了解不同语料库的定义,请参阅文件和文件夹概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-24。
[null,null,["最后更新时间 (UTC):2025-02-24。"],[[["The shared drive change log tracks changes for files moved to a shared drive, while the user change log tracks changes for individual items shared with non-members within a shared drive."],["When a file is moved to a shared drive, subsequent changes are logged in the shared drive change log, requiring queries to be directed there for updates."],["Loss of access permission for a file results in a `deleted` change log entry, although the file remains accessible to other authorized users."],["Files moved between user corpora may also appear as `deleted` even if access is retained, and using the `includeCorpusRemovals` parameter helps differentiate these from actual deletions."],["Non-shared drive items that are shared directly with users have their changes tracked in the user change log, similar to individual items shared with non-members in a shared drive."]]],[]]