REST Resource: projects.rulesets Stay organized with collections Save and categorize content based on your preferences.
Resource: Ruleset
Ruleset is an immutable copy ofSource with a globally unique identifier and a creation time.
| JSON representation | |
|---|---|
{"name":string,"source":{object ( | |
| Fields | |
|---|---|
name |
Output only. Name of the |
source |
|
createTime |
Output only. Time the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
metadata |
Output only. The metadata for this ruleset. |
attachment_point |
Intended resource to which this Ruleset should be released. May be left blank to signify the resource associated with the default release. Expected format: |
Source
Source is one or moreFile messages comprising a logical set of rules.
| JSON representation | |
|---|---|
{"files":[{object ( | |
| Fields | |
|---|---|
files[] |
|
File
File containing source content.
| JSON representation | |
|---|---|
{"content":string,"name":string,"fingerprint":string} | |
| Fields | |
|---|---|
content |
Rules language statements. Use |
name |
File name. |
fingerprint |
Fingerprint (e.g. github sha) associated with the A base64-encoded string. |
Metadata
Metadata for a Ruleset.
| JSON representation | |
|---|---|
{"services":[string]} | |
| Fields | |
|---|---|
services[] |
Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these. |
Methods | |
|---|---|
| Create aRuleset fromSource. |
| Delete aRuleset by resource name. |
| Get aRuleset by name including the fullSource contents. |
| ListRuleset metadata only and optionally filter the results byRuleset name. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-23 UTC.