REST Resource: projects.rulesets
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:规则集
Ruleset
是Source
的不可变副本,具有全局唯一标识符和创建时间。
JSON 表示 |
---|
{
"name": string,
"source": {
object (Source )
},
"createTime": string,
"metadata": {
object (Metadata )
},
"attachment_point": string
} |
领域 |
---|
name | string 仅输出。 Ruleset 的名称。 ruleset_id 由服务自动生成。格式: projects/{project_id}/rulesets/{ruleset_id} |
source | object ( Source ) Ruleset 的Source 。 |
createTime | string ( Timestamp format) 仅输出。创建Ruleset 时间。 RFC3339 UTC“Zulu”格式的时间戳,具有纳秒分辨率和最多九个小数位。示例: "2014-10-02T15:01:23Z" 和"2014-10-02T15:01:23.045123456Z" 。 |
metadata | object ( Metadata ) 仅输出。此规则集的元数据。 |
attachment_point | string 应将此规则集发布到的预期资源。可以留空以表示与默认版本关联的资源。预期格式: firestore.googleapis.com/projects/<project number>/databases/<uuid> |
来源
Source
是包含一组逻辑规则的一个或多个File
消息。
JSON 表示 |
---|
{
"files": [
{
object (File )
}
]
} |
领域 |
---|
files[] | object ( File ) 构成Source 包的File 集。 |
文件
JSON 表示 |
---|
{
"content": string,
"name": string,
"fingerprint": string
} |
领域 |
---|
content | string 规则语言陈述。使用\n 进行换行。 |
name | string 文件名。 |
fingerprint | string ( bytes format) 与File 关联的指纹(例如 github sha)。 Base64 编码的字符串。 |
方法 |
---|
| 从Source 创建Ruleset 。 |
| 按资源名称删除Ruleset 。 |
| 按名称获取Ruleset ,包括完整的Source 内容。 |
| 仅列出Ruleset 集元数据,并可选择按Ruleset 集名称过滤结果。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]