OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/firebase": { | 8 "https://www.googleapis.com/auth/firebase": { |
9 "description": "View and administer all your Firebase data a
nd settings" | 9 "description": "View and administer all your Firebase data a
nd settings" |
10 }, | 10 }, |
11 "https://www.googleapis.com/auth/firebase.readonly": { | 11 "https://www.googleapis.com/auth/firebase.readonly": { |
12 "description": "View all your Firebase data and settings" | 12 "description": "View all your Firebase data and settings" |
13 } | 13 } |
14 } | 14 } |
15 } | 15 } |
16 }, | 16 }, |
17 "basePath": "", | 17 "basePath": "", |
18 "baseUrl": "https://firebaserules.googleapis.com/", | 18 "baseUrl": "https://firebaserules.googleapis.com/", |
19 "batchPath": "batch", | 19 "batchPath": "batch", |
20 "canonicalName": "Firebase Rules API", | 20 "canonicalName": "Firebase Rules API", |
21 "description": "Creates and manages rules that determine when a Firebase Rul
es-enabled service should permit a request.\n", | 21 "description": "Creates and manages rules that determine when a Firebase Rul
es-enabled service should permit a request.\n", |
22 "discoveryVersion": "v1", | 22 "discoveryVersion": "v1", |
23 "documentationLink": "https://firebase.google.com/docs/storage/security/star
t", | 23 "documentationLink": "https://firebase.google.com/docs/storage/security", |
24 "icons": { | 24 "icons": { |
25 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 25 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
26 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 26 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
27 }, | 27 }, |
28 "id": "firebaserules:v1", | 28 "id": "firebaserules:v1", |
29 "kind": "discovery#restDescription", | 29 "kind": "discovery#restDescription", |
30 "name": "firebaserules", | 30 "name": "firebaserules", |
31 "ownerDomain": "google.com", | 31 "ownerDomain": "google.com", |
32 "ownerName": "Google", | 32 "ownerName": "Google", |
33 "parameters": { | 33 "parameters": { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 "description": "Test `Source` for syntactic and semantic cor
rectness. Issues present in the\nrules, if any, will be returned to the caller w
ith a description, severity,\nand source location.\n\nThe test method will typic
ally be executed with a developer provided\n`Source`, but if regression testing
is desired, this method may be\nexecuted against a `Ruleset` resource name and t
he `Source` will be\nretrieved from the persisted `Ruleset`.\n\nThe following is
an example of `Source` that permits users to upload images\nto a bucket bearing
their user id and matching the correct metadata:\n\n_*Example*_\n\n // Users
are allowed to subscribe and unsubscribe to the blog.\n service firebase.sto
rage {\n match /users/{userId}/images/{imageName} {\n allow write:
if userId == request.userId\n && (imageName.endsWith('.png') || im
ageName.endsWith('.jpg'))\n && resource.mimeType.startsWith('image/
')\n }\n }", | 126 "description": "Test `Source` for syntactic and semantic cor
rectness. Issues present in the\nrules, if any, will be returned to the caller w
ith a description, severity,\nand source location.\n\nThe test method will typic
ally be executed with a developer provided\n`Source`, but if regression testing
is desired, this method may be\nexecuted against a `Ruleset` resource name and t
he `Source` will be\nretrieved from the persisted `Ruleset`.\n\nThe following is
an example of `Source` that permits users to upload images\nto a bucket bearing
their user id and matching the correct metadata:\n\n_*Example*_\n\n // Users
are allowed to subscribe and unsubscribe to the blog.\n service firebase.sto
rage {\n match /users/{userId}/images/{imageName} {\n allow write:
if userId == request.userId\n && (imageName.endsWith('.png') || im
ageName.endsWith('.jpg'))\n && resource.mimeType.startsWith('image/
')\n }\n }", |
127 "httpMethod": "POST", | 127 "httpMethod": "POST", |
128 "id": "firebaserules.projects.test", | 128 "id": "firebaserules.projects.test", |
129 "parameterOrder": [ | 129 "parameterOrder": [ |
130 "name" | 130 "name" |
131 ], | 131 ], |
132 "parameters": { | 132 "parameters": { |
133 "name": { | 133 "name": { |
134 "description": "Name of the project.\n\nFormat: `pro
jects/{project_id}`", | 134 "description": "Name of the project.\n\nFormat: `pro
jects/{project_id}`", |
135 "location": "path", | 135 "location": "path", |
136 "pattern": "^projects/.*$", | 136 "pattern": "^projects/.+$", |
137 "required": true, | 137 "required": true, |
138 "type": "string" | 138 "type": "string" |
139 } | 139 } |
140 }, | 140 }, |
141 "path": "v1/{+name}:test", | 141 "path": "v1/{+name}:test", |
142 "request": { | 142 "request": { |
143 "$ref": "TestRulesetRequest" | 143 "$ref": "TestRulesetRequest" |
144 }, | 144 }, |
145 "response": { | 145 "response": { |
146 "$ref": "TestRulesetResponse" | 146 "$ref": "TestRulesetResponse" |
(...skipping 12 matching lines...) Expand all Loading... |
159 "description": "Create a `Ruleset` from `Source`.\n\
nThe `Ruleset` is given a unique generated name which is returned to the\ncaller
. `Source` containing syntactic or semantics errors will result in an\nerror res
ponse indicating the first error encountered. For a detailed view\nof `Source` i
ssues, use TestRuleset.", | 159 "description": "Create a `Ruleset` from `Source`.\n\
nThe `Ruleset` is given a unique generated name which is returned to the\ncaller
. `Source` containing syntactic or semantics errors will result in an\nerror res
ponse indicating the first error encountered. For a detailed view\nof `Source` i
ssues, use TestRuleset.", |
160 "httpMethod": "POST", | 160 "httpMethod": "POST", |
161 "id": "firebaserules.projects.rulesets.create", | 161 "id": "firebaserules.projects.rulesets.create", |
162 "parameterOrder": [ | 162 "parameterOrder": [ |
163 "name" | 163 "name" |
164 ], | 164 ], |
165 "parameters": { | 165 "parameters": { |
166 "name": { | 166 "name": { |
167 "description": "Resource name for Project wh
ich owns this `Ruleset`.\n\nFormat: `projects/{project_id}`", | 167 "description": "Resource name for Project wh
ich owns this `Ruleset`.\n\nFormat: `projects/{project_id}`", |
168 "location": "path", | 168 "location": "path", |
169 "pattern": "^projects/[^/]*$", | 169 "pattern": "^projects/[^/]+$", |
170 "required": true, | 170 "required": true, |
171 "type": "string" | 171 "type": "string" |
172 } | 172 } |
173 }, | 173 }, |
174 "path": "v1/{+name}/rulesets", | 174 "path": "v1/{+name}/rulesets", |
175 "request": { | 175 "request": { |
176 "$ref": "Ruleset" | 176 "$ref": "Ruleset" |
177 }, | 177 }, |
178 "response": { | 178 "response": { |
179 "$ref": "Ruleset" | 179 "$ref": "Ruleset" |
180 }, | 180 }, |
181 "scopes": [ | 181 "scopes": [ |
182 "https://www.googleapis.com/auth/cloud-platform"
, | 182 "https://www.googleapis.com/auth/cloud-platform"
, |
183 "https://www.googleapis.com/auth/firebase" | 183 "https://www.googleapis.com/auth/firebase" |
184 ] | 184 ] |
185 }, | 185 }, |
186 "get": { | 186 "get": { |
187 "description": "Get a `Ruleset` by name including th
e full `Source` contents.", | 187 "description": "Get a `Ruleset` by name including th
e full `Source` contents.", |
188 "httpMethod": "GET", | 188 "httpMethod": "GET", |
189 "id": "firebaserules.projects.rulesets.get", | 189 "id": "firebaserules.projects.rulesets.get", |
190 "parameterOrder": [ | 190 "parameterOrder": [ |
191 "name" | 191 "name" |
192 ], | 192 ], |
193 "parameters": { | 193 "parameters": { |
194 "name": { | 194 "name": { |
195 "description": "Resource name for the rulese
t to get.\n\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`", | 195 "description": "Resource name for the rulese
t to get.\n\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`", |
196 "location": "path", | 196 "location": "path", |
197 "pattern": "^projects/[^/]*/rulesets/[^/]*$"
, | 197 "pattern": "^projects/[^/]+/rulesets/[^/]+$"
, |
198 "required": true, | 198 "required": true, |
199 "type": "string" | 199 "type": "string" |
200 } | 200 } |
201 }, | 201 }, |
202 "path": "v1/{+name}", | 202 "path": "v1/{+name}", |
203 "response": { | 203 "response": { |
204 "$ref": "Ruleset" | 204 "$ref": "Ruleset" |
205 }, | 205 }, |
206 "scopes": [ | 206 "scopes": [ |
207 "https://www.googleapis.com/auth/cloud-platform"
, | 207 "https://www.googleapis.com/auth/cloud-platform"
, |
(...skipping 11 matching lines...) Expand all Loading... |
219 "parameters": { | 219 "parameters": { |
220 "pageSize": { | 220 "pageSize": { |
221 "description": "Page size to load. Maximum o
f 100. Defaults to 10.\nNote: `page_size` is just a hint and the service may cho
ose to load less\nthan `page_size` due to the size of the output. To traverse al
l of the\nreleases, caller should iterate until the `page_token` is empty.", | 221 "description": "Page size to load. Maximum o
f 100. Defaults to 10.\nNote: `page_size` is just a hint and the service may cho
ose to load less\nthan `page_size` due to the size of the output. To traverse al
l of the\nreleases, caller should iterate until the `page_token` is empty.", |
222 "format": "int32", | 222 "format": "int32", |
223 "location": "query", | 223 "location": "query", |
224 "type": "integer" | 224 "type": "integer" |
225 }, | 225 }, |
226 "name": { | 226 "name": { |
227 "description": "Resource name for the projec
t.\n\nFormat: `projects/{project_id}`", | 227 "description": "Resource name for the projec
t.\n\nFormat: `projects/{project_id}`", |
228 "location": "path", | 228 "location": "path", |
229 "pattern": "^projects/[^/]*$", | 229 "pattern": "^projects/[^/]+$", |
230 "required": true, | 230 "required": true, |
231 "type": "string" | 231 "type": "string" |
232 }, | 232 }, |
233 "pageToken": { | 233 "pageToken": { |
234 "description": "Next page token for loading
the next batch of `Ruleset` instances.", | 234 "description": "Next page token for loading
the next batch of `Ruleset` instances.", |
235 "location": "query", | 235 "location": "query", |
236 "type": "string" | 236 "type": "string" |
237 } | 237 } |
238 }, | 238 }, |
239 "path": "v1/{+name}/rulesets", | 239 "path": "v1/{+name}/rulesets", |
(...skipping 10 matching lines...) Expand all Loading... |
250 "description": "Delete a `Ruleset` by resource name.
\n\nIf the `Ruleset` is referenced by a `Release` the operation will fail.", | 250 "description": "Delete a `Ruleset` by resource name.
\n\nIf the `Ruleset` is referenced by a `Release` the operation will fail.", |
251 "httpMethod": "DELETE", | 251 "httpMethod": "DELETE", |
252 "id": "firebaserules.projects.rulesets.delete", | 252 "id": "firebaserules.projects.rulesets.delete", |
253 "parameterOrder": [ | 253 "parameterOrder": [ |
254 "name" | 254 "name" |
255 ], | 255 ], |
256 "parameters": { | 256 "parameters": { |
257 "name": { | 257 "name": { |
258 "description": "Resource name for the rulese
t to delete.\n\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`", | 258 "description": "Resource name for the rulese
t to delete.\n\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`", |
259 "location": "path", | 259 "location": "path", |
260 "pattern": "^projects/[^/]*/rulesets/[^/]*$"
, | 260 "pattern": "^projects/[^/]+/rulesets/[^/]+$"
, |
261 "required": true, | 261 "required": true, |
262 "type": "string" | 262 "type": "string" |
263 } | 263 } |
264 }, | 264 }, |
265 "path": "v1/{+name}", | 265 "path": "v1/{+name}", |
266 "response": { | 266 "response": { |
267 "$ref": "Empty" | 267 "$ref": "Empty" |
268 }, | 268 }, |
269 "scopes": [ | 269 "scopes": [ |
270 "https://www.googleapis.com/auth/cloud-platform"
, | 270 "https://www.googleapis.com/auth/cloud-platform"
, |
271 "https://www.googleapis.com/auth/firebase" | 271 "https://www.googleapis.com/auth/firebase" |
272 ] | 272 ] |
273 } | 273 } |
274 } | 274 } |
275 }, | 275 }, |
276 "releases": { | 276 "releases": { |
277 "methods": { | 277 "methods": { |
278 "update": { | 278 "update": { |
279 "description": "Update a `Release`.\n\nOnly updates
to the `ruleset_name` field will be honored. `Release` rename\nis not supported.
To create a `Release` use the CreateRelease method\ninstead.", | 279 "description": "Update a `Release`.\n\nOnly updates
to the `ruleset_name` field will be honored. `Release` rename\nis not supported.
To create a `Release` use the CreateRelease method\ninstead.", |
280 "httpMethod": "PUT", | 280 "httpMethod": "PUT", |
281 "id": "firebaserules.projects.releases.update", | 281 "id": "firebaserules.projects.releases.update", |
282 "parameterOrder": [ | 282 "parameterOrder": [ |
283 "name" | 283 "name" |
284 ], | 284 ], |
285 "parameters": { | 285 "parameters": { |
286 "name": { | 286 "name": { |
287 "description": "Resource name for the `Relea
se`.\n\n`Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`\
nwhich affords developers a great deal of flexibility in mapping the name\nto th
e style that best fits their existing development practices. For\nexample, a nam
e could refer to an environment, an app, a version, or some\ncombination of thre
e.\n\nIn the table below, for the project name `projects/foo`, the following\nre
lative release paths show how flat and structured names might be chosen\nto matc
h a desired development / deployment strategy.\n\nUse Case | Flat Name
| Structured Name\n-------------|---------------------|----------------\nEn
vironments | releases/qa | releases/qa\nApps | releases/app1_qa
| releases/app1/qa\nVersions | releases/app1_v2_qa | releases/app1/v2/qa\
n\nThe delimiter between the release name path elements can be almost anything\n
and it should work equally well with the release name list filter, but in\nmany
ways the structured paths provide a clearer picture of the\nrelationship between
`Release` instances.\n\nFormat: `projects/{project_id}/releases/{release_id}`", | 287 "description": "Resource name for the `Relea
se`.\n\n`Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`\
nwhich affords developers a great deal of flexibility in mapping the name\nto th
e style that best fits their existing development practices. For\nexample, a nam
e could refer to an environment, an app, a version, or some\ncombination of thre
e.\n\nIn the table below, for the project name `projects/foo`, the following\nre
lative release paths show how flat and structured names might be chosen\nto matc
h a desired development / deployment strategy.\n\nUse Case | Flat Name
| Structured Name\n-------------|---------------------|----------------\nEn
vironments | releases/qa | releases/qa\nApps | releases/app1_qa
| releases/app1/qa\nVersions | releases/app1_v2_qa | releases/app1/v2/qa\
n\nThe delimiter between the release name path elements can be almost anything\n
and it should work equally well with the release name list filter, but in\nmany
ways the structured paths provide a clearer picture of the\nrelationship between
`Release` instances.\n\nFormat: `projects/{project_id}/releases/{release_id}`", |
288 "location": "path", | 288 "location": "path", |
289 "pattern": "^projects/[^/]*/releases/.*$", | 289 "pattern": "^projects/[^/]+/releases/.+$", |
290 "required": true, | 290 "required": true, |
291 "type": "string" | 291 "type": "string" |
292 } | 292 } |
293 }, | 293 }, |
294 "path": "v1/{+name}", | 294 "path": "v1/{+name}", |
295 "request": { | 295 "request": { |
296 "$ref": "Release" | 296 "$ref": "Release" |
297 }, | 297 }, |
298 "response": { | 298 "response": { |
299 "$ref": "Release" | 299 "$ref": "Release" |
300 }, | 300 }, |
301 "scopes": [ | 301 "scopes": [ |
302 "https://www.googleapis.com/auth/cloud-platform"
, | 302 "https://www.googleapis.com/auth/cloud-platform"
, |
303 "https://www.googleapis.com/auth/firebase" | 303 "https://www.googleapis.com/auth/firebase" |
304 ] | 304 ] |
305 }, | 305 }, |
306 "create": { | 306 "create": { |
307 "description": "Create a `Release`.\n\nRelease names
should reflect the developer's deployment practices. For\nexample, the release
name may include the environment name, application\nname, application version, o
r any other name meaningful to the developer.\nOnce a `Release` refers to a `Rul
eset`, the rules can be enforced by\nFirebase Rules-enabled services.\n\nMore th
an one `Release` may be 'live' concurrently. Consider the following\nthree `Rele
ase` names for `projects/foo` and the `Ruleset` to which they\nrefer.\n\nRelease
Name | Ruleset Name\n--------------------------------|------
-------\nprojects/foo/releases/prod | projects/foo/rulesets/uuid123\nprojec
ts/foo/releases/prod/beta | projects/foo/rulesets/uuid123\nprojects/foo/releases
/prod/v23 | projects/foo/rulesets/uuid456\n\nThe table reflects the `Ruleset` r
ollout in progress. The `prod` and\n`prod/beta` releases refer to the same `Rule
set`. However, `prod/v23`\nrefers to a new `Ruleset`. The `Ruleset` reference fo
r a `Release` may be\nupdated using the UpdateRelease method, and the custom `Re
lease` name\nmay be referenced by specifying the `X-Firebase-Rules-Release-Name`
header.", | 307 "description": "Create a `Release`.\n\nRelease names
should reflect the developer's deployment practices. For\nexample, the release
name may include the environment name, application\nname, application version, o
r any other name meaningful to the developer.\nOnce a `Release` refers to a `Rul
eset`, the rules can be enforced by\nFirebase Rules-enabled services.\n\nMore th
an one `Release` may be 'live' concurrently. Consider the following\nthree `Rele
ase` names for `projects/foo` and the `Ruleset` to which they\nrefer.\n\nRelease
Name | Ruleset Name\n--------------------------------|------
-------\nprojects/foo/releases/prod | projects/foo/rulesets/uuid123\nprojec
ts/foo/releases/prod/beta | projects/foo/rulesets/uuid123\nprojects/foo/releases
/prod/v23 | projects/foo/rulesets/uuid456\n\nThe table reflects the `Ruleset` r
ollout in progress. The `prod` and\n`prod/beta` releases refer to the same `Rule
set`. However, `prod/v23`\nrefers to a new `Ruleset`. The `Ruleset` reference fo
r a `Release` may be\nupdated using the UpdateRelease method, and the custom `Re
lease` name\nmay be referenced by specifying the `X-Firebase-Rules-Release-Name`
header.", |
308 "httpMethod": "POST", | 308 "httpMethod": "POST", |
309 "id": "firebaserules.projects.releases.create", | 309 "id": "firebaserules.projects.releases.create", |
310 "parameterOrder": [ | 310 "parameterOrder": [ |
311 "name" | 311 "name" |
312 ], | 312 ], |
313 "parameters": { | 313 "parameters": { |
314 "name": { | 314 "name": { |
315 "description": "Resource name for the projec
t which owns this `Release`.\n\nFormat: `projects/{project_id}`", | 315 "description": "Resource name for the projec
t which owns this `Release`.\n\nFormat: `projects/{project_id}`", |
316 "location": "path", | 316 "location": "path", |
317 "pattern": "^projects/[^/]*$", | 317 "pattern": "^projects/[^/]+$", |
318 "required": true, | 318 "required": true, |
319 "type": "string" | 319 "type": "string" |
320 } | 320 } |
321 }, | 321 }, |
322 "path": "v1/{+name}/releases", | 322 "path": "v1/{+name}/releases", |
323 "request": { | 323 "request": { |
324 "$ref": "Release" | 324 "$ref": "Release" |
325 }, | 325 }, |
326 "response": { | 326 "response": { |
327 "$ref": "Release" | 327 "$ref": "Release" |
328 }, | 328 }, |
329 "scopes": [ | 329 "scopes": [ |
330 "https://www.googleapis.com/auth/cloud-platform"
, | 330 "https://www.googleapis.com/auth/cloud-platform"
, |
331 "https://www.googleapis.com/auth/firebase" | 331 "https://www.googleapis.com/auth/firebase" |
332 ] | 332 ] |
333 }, | 333 }, |
334 "get": { | 334 "get": { |
335 "description": "Get a `Release` by name.", | 335 "description": "Get a `Release` by name.", |
336 "httpMethod": "GET", | 336 "httpMethod": "GET", |
337 "id": "firebaserules.projects.releases.get", | 337 "id": "firebaserules.projects.releases.get", |
338 "parameterOrder": [ | 338 "parameterOrder": [ |
339 "name" | 339 "name" |
340 ], | 340 ], |
341 "parameters": { | 341 "parameters": { |
342 "name": { | 342 "name": { |
343 "description": "Resource name of the `Releas
e`.\n\n\nFormat: `projects/{project_id}/releases/{release_id}`", | 343 "description": "Resource name of the `Releas
e`.\n\n\nFormat: `projects/{project_id}/releases/{release_id}`", |
344 "location": "path", | 344 "location": "path", |
345 "pattern": "^projects/[^/]*/releases/.*$", | 345 "pattern": "^projects/[^/]+/releases/.+$", |
346 "required": true, | 346 "required": true, |
347 "type": "string" | 347 "type": "string" |
348 } | 348 } |
349 }, | 349 }, |
350 "path": "v1/{+name}", | 350 "path": "v1/{+name}", |
351 "response": { | 351 "response": { |
352 "$ref": "Release" | 352 "$ref": "Release" |
353 }, | 353 }, |
354 "scopes": [ | 354 "scopes": [ |
355 "https://www.googleapis.com/auth/cloud-platform"
, | 355 "https://www.googleapis.com/auth/cloud-platform"
, |
(...skipping 16 matching lines...) Expand all Loading... |
372 "type": "integer" | 372 "type": "integer" |
373 }, | 373 }, |
374 "filter": { | 374 "filter": { |
375 "description": "`Release` filter. The list m
ethod supports filters with restrictions on the\n`Release` `name` and also on th
e `Ruleset` `ruleset_name`.\n\nExample 1) A filter of 'name=prod*' might return
`Release`s with names\nwithin 'projects/foo' prefixed with 'prod':\n\nName
| Ruleset Name\n------------------------------|-------------
\nprojects/foo/releases/prod | projects/foo/rulesets/uuid1234\nprojects/foo/r
eleases/prod/v1 | projects/foo/rulesets/uuid1234\nprojects/foo/releases/prod/v2
| projects/foo/rulesets/uuid8888\n\nExample 2) A filter of `name=prod* ruleset_n
ame=uuid1234` would return only\n`Release` instances for 'projects/foo' with nam
es prefixed with 'prod'\nreferring to the same `Ruleset` name of 'uuid1234':\n\n
Name | Ruleset Name\n------------------------------|---
----------\nprojects/foo/releases/prod | projects/foo/rulesets/1234\nprojects
/foo/releases/prod/v1 | projects/foo/rulesets/1234\n\nIn the examples, the filte
r parameters refer to the search filters for\nrelease and ruleset names are rela
tive to the project releases and rulesets\ncollections. Fully qualified prefixed
may also be used. e.g.\n`name=projects/foo/releases/prod* ruleset_name=projects
/foo/rulesets/uuid1`", | 375 "description": "`Release` filter. The list m
ethod supports filters with restrictions on the\n`Release` `name` and also on th
e `Ruleset` `ruleset_name`.\n\nExample 1) A filter of 'name=prod*' might return
`Release`s with names\nwithin 'projects/foo' prefixed with 'prod':\n\nName
| Ruleset Name\n------------------------------|-------------
\nprojects/foo/releases/prod | projects/foo/rulesets/uuid1234\nprojects/foo/r
eleases/prod/v1 | projects/foo/rulesets/uuid1234\nprojects/foo/releases/prod/v2
| projects/foo/rulesets/uuid8888\n\nExample 2) A filter of `name=prod* ruleset_n
ame=uuid1234` would return only\n`Release` instances for 'projects/foo' with nam
es prefixed with 'prod'\nreferring to the same `Ruleset` name of 'uuid1234':\n\n
Name | Ruleset Name\n------------------------------|---
----------\nprojects/foo/releases/prod | projects/foo/rulesets/1234\nprojects
/foo/releases/prod/v1 | projects/foo/rulesets/1234\n\nIn the examples, the filte
r parameters refer to the search filters for\nrelease and ruleset names are rela
tive to the project releases and rulesets\ncollections. Fully qualified prefixed
may also be used. e.g.\n`name=projects/foo/releases/prod* ruleset_name=projects
/foo/rulesets/uuid1`", |
376 "location": "query", | 376 "location": "query", |
377 "type": "string" | 377 "type": "string" |
378 }, | 378 }, |
379 "name": { | 379 "name": { |
380 "description": "Resource name for the projec
t.\n\nFormat: `projects/{project_id}`", | 380 "description": "Resource name for the projec
t.\n\nFormat: `projects/{project_id}`", |
381 "location": "path", | 381 "location": "path", |
382 "pattern": "^projects/[^/]*$", | 382 "pattern": "^projects/[^/]+$", |
383 "required": true, | 383 "required": true, |
384 "type": "string" | 384 "type": "string" |
385 }, | 385 }, |
386 "pageToken": { | 386 "pageToken": { |
387 "description": "Next page token for the next
batch of `Release` instances.", | 387 "description": "Next page token for the next
batch of `Release` instances.", |
388 "location": "query", | 388 "location": "query", |
389 "type": "string" | 389 "type": "string" |
390 } | 390 } |
391 }, | 391 }, |
392 "path": "v1/{+name}/releases", | 392 "path": "v1/{+name}/releases", |
(...skipping 10 matching lines...) Expand all Loading... |
403 "description": "Delete a `Release` by resource name.
", | 403 "description": "Delete a `Release` by resource name.
", |
404 "httpMethod": "DELETE", | 404 "httpMethod": "DELETE", |
405 "id": "firebaserules.projects.releases.delete", | 405 "id": "firebaserules.projects.releases.delete", |
406 "parameterOrder": [ | 406 "parameterOrder": [ |
407 "name" | 407 "name" |
408 ], | 408 ], |
409 "parameters": { | 409 "parameters": { |
410 "name": { | 410 "name": { |
411 "description": "Resource name for the `Relea
se` to delete.\n\nFormat: `projects/{project_id}/releases/{release_id}`", | 411 "description": "Resource name for the `Relea
se` to delete.\n\nFormat: `projects/{project_id}/releases/{release_id}`", |
412 "location": "path", | 412 "location": "path", |
413 "pattern": "^projects/[^/]*/releases/.*$", | 413 "pattern": "^projects/[^/]+/releases/.+$", |
414 "required": true, | 414 "required": true, |
415 "type": "string" | 415 "type": "string" |
416 } | 416 } |
417 }, | 417 }, |
418 "path": "v1/{+name}", | 418 "path": "v1/{+name}", |
419 "response": { | 419 "response": { |
420 "$ref": "Empty" | 420 "$ref": "Empty" |
421 }, | 421 }, |
422 "scopes": [ | 422 "scopes": [ |
423 "https://www.googleapis.com/auth/cloud-platform"
, | 423 "https://www.googleapis.com/auth/cloud-platform"
, |
424 "https://www.googleapis.com/auth/firebase" | 424 "https://www.googleapis.com/auth/firebase" |
425 ] | 425 ] |
426 } | 426 } |
427 } | 427 } |
428 } | 428 } |
429 } | 429 } |
430 } | 430 } |
431 }, | 431 }, |
432 "revision": "20160712", | 432 "revision": "20161021", |
433 "rootUrl": "https://firebaserules.googleapis.com/", | 433 "rootUrl": "https://firebaserules.googleapis.com/", |
434 "schemas": { | 434 "schemas": { |
435 "Release": { | 435 "Release": { |
436 "description": "`Release` is a named reference to a `Ruleset`. Once
a `Release` refers to a\n`Ruleset`, rules-enabled services will be able to enfor
ce the `Ruleset`.", | 436 "description": "`Release` is a named reference to a `Ruleset`. Once
a `Release` refers to a\n`Ruleset`, rules-enabled services will be able to enfor
ce the `Ruleset`.", |
437 "id": "Release", | 437 "id": "Release", |
438 "properties": { | 438 "properties": { |
439 "updateTime": { | 439 "updateTime": { |
440 "description": "Time the release was updated.\n@OutputOnly", | 440 "description": "Time the release was updated.\n@OutputOnly", |
441 "format": "google-datetime", | 441 "format": "google-datetime", |
442 "type": "string" | 442 "type": "string" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 "description": "Position of the issue in the `Source`." | 628 "description": "Position of the issue in the `Source`." |
629 } | 629 } |
630 }, | 630 }, |
631 "type": "object" | 631 "type": "object" |
632 } | 632 } |
633 }, | 633 }, |
634 "servicePath": "", | 634 "servicePath": "", |
635 "title": "Firebase Rules API", | 635 "title": "Firebase Rules API", |
636 "version": "v1" | 636 "version": "v1" |
637 } | 637 } |
OLD | NEW |