blob: 7e0dde07d3c7bcc6cfb8ec94b641ac0876c776bf [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Create a `Ruleset` from `Source`. The `Ruleset` is given a unique generated name which is returned to the caller. `Source` containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of `Source` issues, use TestRuleset.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070083<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070084 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Delete a `Ruleset` by resource name. If the `Ruleset` is referenced by a `Release` the operation will fail.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070086<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070087 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070088<p class="firstline">Get a `Ruleset` by name including the full `Source` contents.</p>
89<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080090 <code><a href="#list">list(name, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">List `Ruleset` metadata only and optionally filter the results by `Ruleset` name. The full `Source` contents of a `Ruleset` may be retrieved with GetRuleset.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700100
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700101<div class="method">
102 <code class="details" id="create">create(name, body=None, x__xgafv=None)</code>
103 <pre>Create a `Ruleset` from `Source`. The `Ruleset` is given a unique generated name which is returned to the caller. `Source` containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of `Source` issues, use TestRuleset.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700104
105Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 name: string, Resource name for Project which owns this `Ruleset`. Format: `projects/{project_id}` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700108 The object takes the form of:
109
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110{ # `Ruleset` is an immutable copy of `Source` with a globally unique identifier and a creation time.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800111 &quot;metadata&quot;: { # Metadata for a Ruleset. # The metadata for this ruleset. Output only.
112 &quot;services&quot;: [ # Services that this ruleset has declarations for (e.g., &quot;cloud.firestore&quot;). There may be 0+ of these.
113 &quot;A String&quot;,
114 ],
115 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800116 &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;name&quot;: &quot;A String&quot;, # File name.
121 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint (e.g. github sha) associated with the `File`.
122 },
123 ],
124 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800125 &quot;name&quot;: &quot;A String&quot;, # Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format: `projects/{project_id}/rulesets/{ruleset_id}` Output only.
126 &quot;createTime&quot;: &quot;A String&quot;, # Time the `Ruleset` was created. Output only.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800127}
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700128
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134Returns:
135 An object of the form:
136
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700137 { # `Ruleset` is an immutable copy of `Source` with a globally unique identifier and a creation time.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800138 &quot;metadata&quot;: { # Metadata for a Ruleset. # The metadata for this ruleset. Output only.
139 &quot;services&quot;: [ # Services that this ruleset has declarations for (e.g., &quot;cloud.firestore&quot;). There may be 0+ of these.
140 &quot;A String&quot;,
141 ],
142 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 &quot;source&quot;: { # `Source` is one or more `File` messages comprising a logical set of rules. # `Source` for the `Ruleset`.
144 &quot;files&quot;: [ # `File` set constituting the `Source` bundle.
145 { # `File` containing source content.
146 &quot;content&quot;: &quot;A String&quot;, # Textual Content.
147 &quot;name&quot;: &quot;A String&quot;, # File name.
148 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint (e.g. github sha) associated with the `File`.
149 },
150 ],
151 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800152 &quot;name&quot;: &quot;A String&quot;, # Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format: `projects/{project_id}/rulesets/{ruleset_id}` Output only.
153 &quot;createTime&quot;: &quot;A String&quot;, # Time the `Ruleset` was created. Output only.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800154 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700155</div>
156
157<div class="method">
158 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
159 <pre>Delete a `Ruleset` by resource name. If the `Ruleset` is referenced by a `Release` the operation will fail.
160
161Args:
162 name: string, Resource name for the ruleset to delete. Format: `projects/{project_id}/rulesets/{ruleset_id}` (required)
163 x__xgafv: string, V1 error format.
164 Allowed values
165 1 - v1 error format
166 2 - v2 error format
167
168Returns:
169 An object of the form:
170
171 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700172 }</pre>
173</div>
174
175<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700176 <code class="details" id="get">get(name, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700177 <pre>Get a `Ruleset` by name including the full `Source` contents.
178
179Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 name: string, Resource name for the ruleset to get. Format: `projects/{project_id}/rulesets/{ruleset_id}` (required)
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700181 x__xgafv: string, V1 error format.
182 Allowed values
183 1 - v1 error format
184 2 - v2 error format
185
186Returns:
187 An object of the form:
188
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700189 { # `Ruleset` is an immutable copy of `Source` with a globally unique identifier and a creation time.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800190 &quot;metadata&quot;: { # Metadata for a Ruleset. # The metadata for this ruleset. Output only.
191 &quot;services&quot;: [ # Services that this ruleset has declarations for (e.g., &quot;cloud.firestore&quot;). There may be 0+ of these.
192 &quot;A String&quot;,
193 ],
194 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800195 &quot;source&quot;: { # `Source` is one or more `File` messages comprising a logical set of rules. # `Source` for the `Ruleset`.
196 &quot;files&quot;: [ # `File` set constituting the `Source` bundle.
197 { # `File` containing source content.
198 &quot;content&quot;: &quot;A String&quot;, # Textual Content.
199 &quot;name&quot;: &quot;A String&quot;, # File name.
200 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint (e.g. github sha) associated with the `File`.
201 },
202 ],
203 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800204 &quot;name&quot;: &quot;A String&quot;, # Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format: `projects/{project_id}/rulesets/{ruleset_id}` Output only.
205 &quot;createTime&quot;: &quot;A String&quot;, # Time the `Ruleset` was created. Output only.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800206 }</pre>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700207</div>
208
209<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800210 <code class="details" id="list">list(name, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700211 <pre>List `Ruleset` metadata only and optionally filter the results by `Ruleset` name. The full `Source` contents of a `Ruleset` may be retrieved with GetRuleset.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700212
213Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700214 name: string, Resource name for the project. Format: `projects/{project_id}` (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800215 filter: string, `Ruleset` filter. The list method supports filters with restrictions on `Ruleset.name`. Filters on `Ruleset.create_time` should use the `date` function which parses strings that conform to the RFC 3339 date/time specifications. Example: `create_time &gt; date(&quot;2017-01-01T00:00:00Z&quot;) AND name=UUID-*`
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800216 pageToken: string, Next page token for loading the next batch of `Ruleset` instances.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800217 pageSize: integer, Page size to load. Maximum of 100. Defaults to 10. Note: `page_size` is just a hint and the service may choose to load less than `page_size` due to the size of the output. To traverse all of the releases, caller should iterate until the `page_token` is empty.
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 x__xgafv: string, V1 error format.
219 Allowed values
220 1 - v1 error format
221 2 - v2 error format
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700222
223Returns:
224 An object of the form:
225
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700226 { # The response for FirebaseRulesService.ListRulesets.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800227 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token to retrieve the next page of results. If the value is empty, no further results remain.
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 &quot;rulesets&quot;: [ # List of `Ruleset` instances.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 { # `Ruleset` is an immutable copy of `Source` with a globally unique identifier and a creation time.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800230 &quot;metadata&quot;: { # Metadata for a Ruleset. # The metadata for this ruleset. Output only.
231 &quot;services&quot;: [ # Services that this ruleset has declarations for (e.g., &quot;cloud.firestore&quot;). There may be 0+ of these.
232 &quot;A String&quot;,
233 ],
234 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800235 &quot;source&quot;: { # `Source` is one or more `File` messages comprising a logical set of rules. # `Source` for the `Ruleset`.
236 &quot;files&quot;: [ # `File` set constituting the `Source` bundle.
237 { # `File` containing source content.
238 &quot;content&quot;: &quot;A String&quot;, # Textual Content.
239 &quot;name&quot;: &quot;A String&quot;, # File name.
240 &quot;fingerprint&quot;: &quot;A String&quot;, # Fingerprint (e.g. github sha) associated with the `File`.
241 },
242 ],
243 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800244 &quot;name&quot;: &quot;A String&quot;, # Name of the `Ruleset`. The ruleset_id is auto generated by the service. Format: `projects/{project_id}/rulesets/{ruleset_id}` Output only.
245 &quot;createTime&quot;: &quot;A String&quot;, # Time the `Ruleset` was created. Output only.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800246 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700247 ],
248 }</pre>
249</div>
250
251<div class="method">
252 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
253 <pre>Retrieves the next page of results.
254
255Args:
256 previous_request: The request for the previous page. (required)
257 previous_response: The response from the request for the previous page. (required)
258
259Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700261 page. Returns None if there are no more items in the collection.
262 </pre>
263</div>
264
265</body></html>