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 集名稱篩選結果。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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":"其他"
}]