Enum DeveloperMetadataVisibility
开发者元数据公开范围
开发者元数据公开范围类型的枚举。
如需调用枚举,您可以调用其父类、名称和属性。例如
SpreadsheetApp.DeveloperMetadataVisibility.DOCUMENT
。
属性
属性 | 类型 | 说明 |
DOCUMENT | Enum | 具有文档访问权限的任何开发者项目都可以访问文档可见的元数据。 |
PROJECT | Enum | 项目可见的元数据仅对创建元数据的开发者项目可见且仅能由该项目访问。请勿将项目公开的开发者元数据用作安全机制或用于存储密钥。它可向对文档具有查看权限的用户显示。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):2024-12-02。"],[[["`DeveloperMetadataVisibility` is used to define the visibility of developer metadata within a Google document."],["There are two visibility types: `DOCUMENT` which allows any developer project with document access to view the metadata, and `PROJECT` which limits visibility to the creating project only."],["Metadata visibility should not be used for security purposes or to hide sensitive information, as it can be accessed by users with viewing permissions."]]],["Developer metadata visibility is categorized into two types: `DOCUMENT` and `PROJECT`. `DOCUMENT`-visible metadata can be accessed by any developer project with document access. `PROJECT`-visible metadata is restricted to the creating project. Project metadata should not be used for security or storing secrets, as it can be exposed to users with view access to the document. The way to use these properties is by referencing `SpreadsheetApp.DeveloperMetadataVisibility`.\n"]]