blob: 40ff507195995b9dcc48ef0aa7b92f5454f68a43 [file] [log] [blame]
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="firebaserules_v1.html">Firebase Rules API</a> . <a href="firebaserules_v1.projects.html">projects</a> . <a href="firebaserules_v1.projects.rulesets.html">rulesets</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(name, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070079<p class="firstline">Create a `Ruleset` from `Source`.</p>
80<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070081 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070082<p class="firstline">Delete a `Ruleset` by resource name.</p>
83<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070084 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070085<p class="firstline">Get a `Ruleset` by name including the full `Source` contents.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(name, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -070088<p class="firstline">List `Ruleset` metadata only and optionally filter the results by `Ruleset`</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<h3>Method Details</h3>
93<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070094 <code class="details" id="create">create(name, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070095 <pre>Create a `Ruleset` from `Source`.
96
97The `Ruleset` is given a unique generated name which is returned to the
98caller. `Source` containing syntactic or semantics errors will result in an
99error response indicating the first error encountered. For a detailed view
100of `Source` issues, use TestRuleset.
101
102Args:
103 name: string, Resource name for Project which owns this `Ruleset`.
104
105Format: `projects/{project_id}` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700107 The object takes the form of:
108
109{ # `Ruleset` is an immutable copy of `Source` with a globally unique identifier
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 # and a creation time.
111 &quot;createTime&quot;: &quot;A String&quot;, # Time the `Ruleset` was created.
112 # Output only.
113 &quot;name&quot;: &quot;A String&quot;, # Name of the `Ruleset`. The ruleset_id is auto generated by the service.
114 # Format: `projects/{project_id}/rulesets/{ruleset_id}`
115 # Output only.
116 &quot;source&quot;: { # `Source` is one or more `File` messages comprising a logical set of rules. # `Source` for the `Ruleset`.
117 &quot;files&quot;: [ # `File` set constituting the `Source` bundle.
118 { # `File` containing source content.
119 &quot;content&quot;: &quot;A String&quot;, # Textual Content.
120 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint (e.g. github sha) associated with the `File`.
121 &quot;name&quot;: &quot;A String&quot;, # File name.
122 },
123 ],
124 },
125 &quot;metadata&quot;: { # Metadata for a Ruleset. # The metadata for this ruleset.
126 # Output only.
127 &quot;services&quot;: [ # Services that this ruleset has declarations for (e.g.,
128 # &quot;cloud.firestore&quot;). There may be 0+ of these.
129 &quot;A String&quot;,
130 ],
131 },
132}
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700133
134 x__xgafv: string, V1 error format.
135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
138
139Returns:
140 An object of the form:
141
142 { # `Ruleset` is an immutable copy of `Source` with a globally unique identifier
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 # and a creation time.
144 &quot;createTime&quot;: &quot;A String&quot;, # Time the `Ruleset` was created.
145 # Output only.
146 &quot;name&quot;: &quot;A String&quot;, # Name of the `Ruleset`. The ruleset_id is auto generated by the service.
147 # Format: `projects/{project_id}/rulesets/{ruleset_id}`
148 # Output only.
149 &quot;source&quot;: { # `Source` is one or more `File` messages comprising a logical set of rules. # `Source` for the `Ruleset`.
150 &quot;files&quot;: [ # `File` set constituting the `Source` bundle.
151 { # `File` containing source content.
152 &quot;content&quot;: &quot;A String&quot;, # Textual Content.
153 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint (e.g. github sha) associated with the `File`.
154 &quot;name&quot;: &quot;A String&quot;, # File name.
155 },
156 ],
157 },
158 &quot;metadata&quot;: { # Metadata for a Ruleset. # The metadata for this ruleset.
159 # Output only.
160 &quot;services&quot;: [ # Services that this ruleset has declarations for (e.g.,
161 # &quot;cloud.firestore&quot;). There may be 0+ of these.
162 &quot;A String&quot;,
163 ],
164 },
165 }</pre>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700166</div>
167
168<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700169 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700170 <pre>Delete a `Ruleset` by resource name.
171
172If the `Ruleset` is referenced by a `Release` the operation will fail.
173
174Args:
175 name: string, Resource name for the ruleset to delete.
176
177Format: `projects/{project_id}/rulesets/{ruleset_id}` (required)
178 x__xgafv: string, V1 error format.
179 Allowed values
180 1 - v1 error format
181 2 - v2 error format
182
183Returns:
184 An object of the form:
185
186 { # A generic empty message that you can re-use to avoid defining duplicated
187 # empty messages in your APIs. A typical example is to use it as the request
188 # or the response type of an API method. For instance:
189 #
190 # service Foo {
191 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
192 # }
193 #
194 # The JSON representation for `Empty` is empty JSON object `{}`.
195 }</pre>
196</div>
197
198<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700199 <code class="details" id="get">get(name, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700200 <pre>Get a `Ruleset` by name including the full `Source` contents.
201
202Args:
203 name: string, Resource name for the ruleset to get.
204
205Format: `projects/{project_id}/rulesets/{ruleset_id}` (required)
206 x__xgafv: string, V1 error format.
207 Allowed values
208 1 - v1 error format
209 2 - v2 error format
210
211Returns:
212 An object of the form:
213
214 { # `Ruleset` is an immutable copy of `Source` with a globally unique identifier
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 # and a creation time.
216 &quot;createTime&quot;: &quot;A String&quot;, # Time the `Ruleset` was created.
217 # Output only.
218 &quot;name&quot;: &quot;A String&quot;, # Name of the `Ruleset`. The ruleset_id is auto generated by the service.
219 # Format: `projects/{project_id}/rulesets/{ruleset_id}`
220 # Output only.
221 &quot;source&quot;: { # `Source` is one or more `File` messages comprising a logical set of rules. # `Source` for the `Ruleset`.
222 &quot;files&quot;: [ # `File` set constituting the `Source` bundle.
223 { # `File` containing source content.
224 &quot;content&quot;: &quot;A String&quot;, # Textual Content.
225 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint (e.g. github sha) associated with the `File`.
226 &quot;name&quot;: &quot;A String&quot;, # File name.
227 },
228 ],
229 },
230 &quot;metadata&quot;: { # Metadata for a Ruleset. # The metadata for this ruleset.
231 # Output only.
232 &quot;services&quot;: [ # Services that this ruleset has declarations for (e.g.,
233 # &quot;cloud.firestore&quot;). There may be 0+ of these.
234 &quot;A String&quot;,
235 ],
236 },
237 }</pre>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700238</div>
239
240<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 <code class="details" id="list">list(name, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700242 <pre>List `Ruleset` metadata only and optionally filter the results by `Ruleset`
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700243name.
244
245The full `Source` contents of a `Ruleset` may be retrieved with
246GetRuleset.
247
248Args:
249 name: string, Resource name for the project.
250
251Format: `projects/{project_id}` (required)
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700252 filter: string, `Ruleset` filter. The list method supports filters with restrictions on
253`Ruleset.name`.
254
255Filters on `Ruleset.create_time` should use the `date` function which
256parses strings that conform to the RFC 3339 date/time specifications.
257
Bu Sun Kim65020912020-05-20 12:08:20 -0700258Example: `create_time &gt; date(&quot;2017-01-01T00:00:00Z&quot;) AND name=UUID-*`
259 pageToken: string, Next page token for loading the next batch of `Ruleset` instances.
260 pageSize: integer, Page size to load. Maximum of 100. Defaults to 10.
261Note: `page_size` is just a hint and the service may choose to load less
262than `page_size` due to the size of the output. To traverse all of the
263releases, caller should iterate until the `page_token` is empty.
264 x__xgafv: string, V1 error format.
265 Allowed values
266 1 - v1 error format
267 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700268
269Returns:
270 An object of the form:
271
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700272 { # The response for FirebaseRulesService.ListRulesets.
Bu Sun Kim65020912020-05-20 12:08:20 -0700273 &quot;rulesets&quot;: [ # List of `Ruleset` instances.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700274 { # `Ruleset` is an immutable copy of `Source` with a globally unique identifier
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 # and a creation time.
276 &quot;createTime&quot;: &quot;A String&quot;, # Time the `Ruleset` was created.
277 # Output only.
278 &quot;name&quot;: &quot;A String&quot;, # Name of the `Ruleset`. The ruleset_id is auto generated by the service.
279 # Format: `projects/{project_id}/rulesets/{ruleset_id}`
280 # Output only.
281 &quot;source&quot;: { # `Source` is one or more `File` messages comprising a logical set of rules. # `Source` for the `Ruleset`.
282 &quot;files&quot;: [ # `File` set constituting the `Source` bundle.
283 { # `File` containing source content.
284 &quot;content&quot;: &quot;A String&quot;, # Textual Content.
285 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint (e.g. github sha) associated with the `File`.
286 &quot;name&quot;: &quot;A String&quot;, # File name.
287 },
288 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700289 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;metadata&quot;: { # Metadata for a Ruleset. # The metadata for this ruleset.
291 # Output only.
292 &quot;services&quot;: [ # Services that this ruleset has declarations for (e.g.,
293 # &quot;cloud.firestore&quot;). There may be 0+ of these.
294 &quot;A String&quot;,
295 ],
296 },
297 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700298 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token to retrieve the next page of results. If the value is
300 # empty, no further results remain.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700301 }</pre>
302</div>
303
304<div class="method">
305 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
306 <pre>Retrieves the next page of results.
307
308Args:
309 previous_request: The request for the previous page. (required)
310 previous_response: The response from the request for the previous page. (required)
311
312Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700314 page. Returns None if there are no more items in the collection.
315 </pre>
316</div>
317
318</body></html>