Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Side by Side Diff: discovery/googleapis/firebaserules__v1.json

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.readonly": { 8 "https://www.googleapis.com/auth/firebase.readonly": {
9 "description": "View all your Firebase data and settings" 9 "description": "View all your Firebase data and settings"
10 }, 10 },
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 56 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
57 "location": "query", 57 "location": "query",
58 "type": "string" 58 "type": "string"
59 }, 59 },
60 "prettyPrint": { 60 "prettyPrint": {
61 "default": "true", 61 "default": "true",
62 "description": "Returns response with indentations and line breaks." , 62 "description": "Returns response with indentations and line breaks." ,
63 "location": "query", 63 "location": "query",
64 "type": "boolean" 64 "type": "boolean"
65 }, 65 },
66 "fields": {
67 "description": "Selector specifying which fields to include in a par tial response.",
68 "location": "query",
69 "type": "string"
70 },
66 "uploadType": { 71 "uploadType": {
67 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 72 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
68 "location": "query", 73 "location": "query",
69 "type": "string" 74 "type": "string"
70 }, 75 },
71 "fields": {
72 "description": "Selector specifying which fields to include in a par tial response.",
73 "location": "query",
74 "type": "string"
75 },
76 "$.xgafv": { 76 "$.xgafv": {
77 "description": "V1 error format.", 77 "description": "V1 error format.",
78 "enum": [ 78 "enum": [
79 "1", 79 "1",
80 "2" 80 "2"
81 ], 81 ],
82 "enumDescriptions": [ 82 "enumDescriptions": [
83 "v1 error format", 83 "v1 error format",
84 "v2 error format" 84 "v2 error format"
85 ], 85 ],
(...skipping 14 matching lines...) Expand all
100 "proto" 100 "proto"
101 ], 101 ],
102 "enumDescriptions": [ 102 "enumDescriptions": [
103 "Responses with Content-Type of application/json", 103 "Responses with Content-Type of application/json",
104 "Media download with context-dependent Content-Type", 104 "Media download with context-dependent Content-Type",
105 "Responses with Content-Type of application/x-protobuf" 105 "Responses with Content-Type of application/x-protobuf"
106 ], 106 ],
107 "location": "query", 107 "location": "query",
108 "type": "string" 108 "type": "string"
109 }, 109 },
110 "key": {
111 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
112 "location": "query",
113 "type": "string"
114 },
110 "access_token": { 115 "access_token": {
111 "description": "OAuth access token.", 116 "description": "OAuth access token.",
112 "location": "query", 117 "location": "query",
113 "type": "string" 118 "type": "string"
114 },
115 "key": {
116 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
117 "location": "query",
118 "type": "string"
119 } 119 }
120 }, 120 },
121 "protocol": "rest", 121 "protocol": "rest",
122 "resources": { 122 "resources": {
123 "projects": { 123 "projects": {
124 "methods": { 124 "methods": {
125 "test": { 125 "test": {
126 "description": "Test `Source` for syntactic and semantic cor rectness. Issues present, if\nany, will be returned to the caller with a descrip tion, severity, and\nsource location.\n\nThe test method may be executed with `S ource` or a `Ruleset` name.\nPassing `Source` is useful for unit testing new rul es. Passing a `Ruleset`\nname is useful for regression testing an existing rule. \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_*Examp le*_\n\n // Users are allowed to subscribe and unsubscribe to the blog.\n service firebase.storage {\n match /users/{userId}/images/{imageName} {\n allow write: if userId == request.auth.uid\n && (imageName. matches('*.png$')\n || imageName.matches('*.jpg$'))\n && resource.mimeType.matches('^image/')\n }\n }", 126 "description": "Test `Source` for syntactic and semantic cor rectness. Issues present, if\nany, will be returned to the caller with a descrip tion, severity, and\nsource location.\n\nThe test method may be executed with `S ource` or a `Ruleset` name.\nPassing `Source` is useful for unit testing new rul es. Passing a `Ruleset`\nname is useful for regression testing an existing rule. \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_*Examp le*_\n\n // Users are allowed to subscribe and unsubscribe to the blog.\n service firebase.storage {\n match /users/{userId}/images/{imageName} {\n allow write: if userId == request.auth.uid\n && (imageName. matches('*.png$')\n || imageName.matches('*.jpg$'))\n && resource.mimeType.matches('^image/')\n }\n }",
127 "httpMethod": "POST", 127 "httpMethod": "POST",
128 "id": "firebaserules.projects.test", 128 "id": "firebaserules.projects.test",
(...skipping 19 matching lines...) Expand all
148 "scopes": [ 148 "scopes": [
149 "https://www.googleapis.com/auth/cloud-platform", 149 "https://www.googleapis.com/auth/cloud-platform",
150 "https://www.googleapis.com/auth/firebase", 150 "https://www.googleapis.com/auth/firebase",
151 "https://www.googleapis.com/auth/firebase.readonly" 151 "https://www.googleapis.com/auth/firebase.readonly"
152 ] 152 ]
153 } 153 }
154 }, 154 },
155 "resources": { 155 "resources": {
156 "rulesets": { 156 "rulesets": {
157 "methods": { 157 "methods": {
158 "delete": {
159 "description": "Delete a `Ruleset` by resource name. \n\nIf the `Ruleset` is referenced by a `Release` the operation will fail.",
160 "httpMethod": "DELETE",
161 "id": "firebaserules.projects.rulesets.delete",
162 "parameterOrder": [
163 "name"
164 ],
165 "parameters": {
166 "name": {
167 "description": "Resource name for the rulese t to delete.\n\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`",
168 "location": "path",
169 "pattern": "^projects/[^/]+/rulesets/[^/]+$" ,
170 "required": true,
171 "type": "string"
172 }
173 },
174 "path": "v1/{+name}",
175 "response": {
176 "$ref": "Empty"
177 },
178 "scopes": [
179 "https://www.googleapis.com/auth/cloud-platform" ,
180 "https://www.googleapis.com/auth/firebase"
181 ]
182 },
183 "list": { 158 "list": {
184 "description": "List `Ruleset` metadata only and opt ionally filter the results by `Ruleset`\nname.\n\nThe full `Source` contents of a `Ruleset` may be retrieved with\nGetRuleset.", 159 "description": "List `Ruleset` metadata only and opt ionally filter the results by `Ruleset`\nname.\n\nThe full `Source` contents of a `Ruleset` may be retrieved with\nGetRuleset.",
185 "httpMethod": "GET", 160 "httpMethod": "GET",
186 "id": "firebaserules.projects.rulesets.list", 161 "id": "firebaserules.projects.rulesets.list",
187 "parameterOrder": [ 162 "parameterOrder": [
188 "name" 163 "name"
189 ], 164 ],
190 "parameters": { 165 "parameters": {
191 "filter": {
192 "description": "`Ruleset` filter. The list m ethod supports filters with restrictions on\n`Ruleset.name`.\n\nFilters on `Rule set.create_time` should use the `date` function which\nparses strings that confo rm to the RFC 3339 date/time specifications.\n\nExample: `create_time > date(\"2 017-01-01\") AND name=UUID-*`",
193 "location": "query",
194 "type": "string"
195 },
196 "pageToken": { 166 "pageToken": {
197 "description": "Next page token for loading the next batch of `Ruleset` instances.", 167 "description": "Next page token for loading the next batch of `Ruleset` instances.",
198 "location": "query", 168 "location": "query",
199 "type": "string" 169 "type": "string"
200 }, 170 },
201 "name": { 171 "name": {
202 "description": "Resource name for the projec t.\n\nFormat: `projects/{project_id}`", 172 "description": "Resource name for the projec t.\n\nFormat: `projects/{project_id}`",
203 "location": "path", 173 "location": "path",
204 "pattern": "^projects/[^/]+$", 174 "pattern": "^projects/[^/]+$",
205 "required": true, 175 "required": true,
206 "type": "string" 176 "type": "string"
207 }, 177 },
208 "pageSize": { 178 "pageSize": {
209 "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.", 179 "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.",
210 "format": "int32", 180 "format": "int32",
211 "location": "query", 181 "location": "query",
212 "type": "integer" 182 "type": "integer"
183 },
184 "filter": {
185 "description": "`Ruleset` filter. The list m ethod supports filters with restrictions on\n`Ruleset.name`.\n\nFilters on `Rule set.create_time` should use the `date` function which\nparses strings that confo rm to the RFC 3339 date/time specifications.\n\nExample: `create_time > date(\"2 017-01-01\") AND name=UUID-*`",
186 "location": "query",
187 "type": "string"
213 } 188 }
214 }, 189 },
215 "path": "v1/{+name}/rulesets", 190 "path": "v1/{+name}/rulesets",
216 "response": { 191 "response": {
217 "$ref": "ListRulesetsResponse" 192 "$ref": "ListRulesetsResponse"
218 }, 193 },
219 "scopes": [ 194 "scopes": [
220 "https://www.googleapis.com/auth/cloud-platform" , 195 "https://www.googleapis.com/auth/cloud-platform" ,
221 "https://www.googleapis.com/auth/firebase", 196 "https://www.googleapis.com/auth/firebase",
222 "https://www.googleapis.com/auth/firebase.readon ly" 197 "https://www.googleapis.com/auth/firebase.readon ly"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 "request": { 243 "request": {
269 "$ref": "Ruleset" 244 "$ref": "Ruleset"
270 }, 245 },
271 "response": { 246 "response": {
272 "$ref": "Ruleset" 247 "$ref": "Ruleset"
273 }, 248 },
274 "scopes": [ 249 "scopes": [
275 "https://www.googleapis.com/auth/cloud-platform" , 250 "https://www.googleapis.com/auth/cloud-platform" ,
276 "https://www.googleapis.com/auth/firebase" 251 "https://www.googleapis.com/auth/firebase"
277 ] 252 ]
278 } 253 },
279 }
280 },
281 "releases": {
282 "methods": {
283 "delete": { 254 "delete": {
284 "description": "Delete a `Release` by resource name. ", 255 "description": "Delete a `Ruleset` by resource name. \n\nIf the `Ruleset` is referenced by a `Release` the operation will fail.",
285 "httpMethod": "DELETE", 256 "httpMethod": "DELETE",
286 "id": "firebaserules.projects.releases.delete", 257 "id": "firebaserules.projects.rulesets.delete",
287 "parameterOrder": [ 258 "parameterOrder": [
288 "name" 259 "name"
289 ], 260 ],
290 "parameters": { 261 "parameters": {
291 "name": { 262 "name": {
292 "description": "Resource name for the `Relea se` to delete.\n\nFormat: `projects/{project_id}/releases/{release_id}`", 263 "description": "Resource name for the rulese t to delete.\n\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`",
293 "location": "path", 264 "location": "path",
294 "pattern": "^projects/[^/]+/releases/.+$", 265 "pattern": "^projects/[^/]+/rulesets/[^/]+$" ,
295 "required": true, 266 "required": true,
296 "type": "string" 267 "type": "string"
297 } 268 }
298 }, 269 },
299 "path": "v1/{+name}", 270 "path": "v1/{+name}",
300 "response": { 271 "response": {
301 "$ref": "Empty" 272 "$ref": "Empty"
302 }, 273 },
303 "scopes": [ 274 "scopes": [
304 "https://www.googleapis.com/auth/cloud-platform" , 275 "https://www.googleapis.com/auth/cloud-platform" ,
305 "https://www.googleapis.com/auth/firebase" 276 "https://www.googleapis.com/auth/firebase"
306 ] 277 ]
307 }, 278 }
279 }
280 },
281 "releases": {
282 "methods": {
308 "list": { 283 "list": {
309 "description": "List the `Release` values for a proj ect. This list may optionally be\nfiltered by `Release` name, `Ruleset` name, `T estSuite` name, or any\ncombination thereof.", 284 "description": "List the `Release` values for a proj ect. This list may optionally be\nfiltered by `Release` name, `Ruleset` name, `T estSuite` name, or any\ncombination thereof.",
310 "httpMethod": "GET", 285 "httpMethod": "GET",
311 "id": "firebaserules.projects.releases.list", 286 "id": "firebaserules.projects.releases.list",
312 "parameterOrder": [ 287 "parameterOrder": [
313 "name" 288 "name"
314 ], 289 ],
315 "parameters": { 290 "parameters": {
291 "filter": {
292 "description": "`Release` filter. The list m ethod supports filters with restrictions on the\n`Release.name`, `Release.rulese t_name`, and `Release.test_suite_name`.\n\nExample 1: A filter of 'name=prod*' m ight return `Release`s with names\nwithin 'projects/foo' prefixed with 'prod':\n \nName | Ruleset Name\n------------------------------|- ------------\nprojects/foo/releases/prod | projects/foo/rulesets/uuid1234\npr ojects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234\nprojects/foo/relea ses/prod/v2 | projects/foo/rulesets/uuid8888\n\nExample 2: A filter of `name=pro d* ruleset_name=uuid1234` would return only\n`Release` instances for 'projects/f oo' with names prefixed with 'prod'\nreferring to the same `Ruleset` name of 'uu id1234':\n\nName | Ruleset Name\n---------------------- --------|-------------\nprojects/foo/releases/prod | projects/foo/rulesets/12 34\nprojects/foo/releases/prod/v1 | projects/foo/rulesets/1234\n\nIn the example s, the filter parameters refer to the search filters are\nrelative to the projec t. Fully qualified prefixed may also be used. e.g.\n`test_suite_name=projects/fo o/testsuites/uuid1`",
293 "location": "query",
294 "type": "string"
295 },
316 "pageToken": { 296 "pageToken": {
317 "description": "Next page token for the next batch of `Release` instances.", 297 "description": "Next page token for the next batch of `Release` instances.",
318 "location": "query", 298 "location": "query",
319 "type": "string" 299 "type": "string"
320 }, 300 },
321 "name": { 301 "name": {
322 "description": "Resource name for the projec t.\n\nFormat: `projects/{project_id}`", 302 "description": "Resource name for the projec t.\n\nFormat: `projects/{project_id}`",
323 "location": "path", 303 "location": "path",
324 "pattern": "^projects/[^/]+$", 304 "pattern": "^projects/[^/]+$",
325 "required": true, 305 "required": true,
326 "type": "string" 306 "type": "string"
327 }, 307 },
328 "pageSize": { 308 "pageSize": {
329 "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 fewer\nthan `page_size` results due to the size of the output. To tr averse all of\nthe releases, the caller should iterate until the `page_token` on the\nresponse is empty.", 309 "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 fewer\nthan `page_size` results due to the size of the output. To tr averse all of\nthe releases, the caller should iterate until the `page_token` on the\nresponse is empty.",
330 "format": "int32", 310 "format": "int32",
331 "location": "query", 311 "location": "query",
332 "type": "integer" 312 "type": "integer"
333 },
334 "filter": {
335 "description": "`Release` filter. The list m ethod supports filters with restrictions on the\n`Release.name`, `Release.rulese t_name`, and `Release.test_suite_name`.\n\nExample 1: A filter of 'name=prod*' m ight return `Release`s with names\nwithin 'projects/foo' prefixed with 'prod':\n \nName | Ruleset Name\n------------------------------|- ------------\nprojects/foo/releases/prod | projects/foo/rulesets/uuid1234\npr ojects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234\nprojects/foo/relea ses/prod/v2 | projects/foo/rulesets/uuid8888\n\nExample 2: A filter of `name=pro d* ruleset_name=uuid1234` would return only\n`Release` instances for 'projects/f oo' with names prefixed with 'prod'\nreferring to the same `Ruleset` name of 'uu id1234':\n\nName | Ruleset Name\n---------------------- --------|-------------\nprojects/foo/releases/prod | projects/foo/rulesets/12 34\nprojects/foo/releases/prod/v1 | projects/foo/rulesets/1234\n\nIn the example s, the filter parameters refer to the search filters are\nrelative to the projec t. Fully qualified prefixed may also be used. e.g.\n`test_suite_name=projects/fo o/testsuites/uuid1`",
336 "location": "query",
337 "type": "string"
338 } 313 }
339 }, 314 },
340 "path": "v1/{+name}/releases", 315 "path": "v1/{+name}/releases",
341 "response": { 316 "response": {
342 "$ref": "ListReleasesResponse" 317 "$ref": "ListReleasesResponse"
343 }, 318 },
344 "scopes": [ 319 "scopes": [
345 "https://www.googleapis.com/auth/cloud-platform" , 320 "https://www.googleapis.com/auth/cloud-platform" ,
346 "https://www.googleapis.com/auth/firebase", 321 "https://www.googleapis.com/auth/firebase",
347 "https://www.googleapis.com/auth/firebase.readon ly" 322 "https://www.googleapis.com/auth/firebase.readon ly"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 "request": { 396 "request": {
422 "$ref": "Release" 397 "$ref": "Release"
423 }, 398 },
424 "response": { 399 "response": {
425 "$ref": "Release" 400 "$ref": "Release"
426 }, 401 },
427 "scopes": [ 402 "scopes": [
428 "https://www.googleapis.com/auth/cloud-platform" , 403 "https://www.googleapis.com/auth/cloud-platform" ,
429 "https://www.googleapis.com/auth/firebase" 404 "https://www.googleapis.com/auth/firebase"
430 ] 405 ]
406 },
407 "delete": {
408 "description": "Delete a `Release` by resource name. ",
409 "httpMethod": "DELETE",
410 "id": "firebaserules.projects.releases.delete",
411 "parameterOrder": [
412 "name"
413 ],
414 "parameters": {
415 "name": {
416 "description": "Resource name for the `Relea se` to delete.\n\nFormat: `projects/{project_id}/releases/{release_id}`",
417 "location": "path",
418 "pattern": "^projects/[^/]+/releases/.+$",
419 "required": true,
420 "type": "string"
421 }
422 },
423 "path": "v1/{+name}",
424 "response": {
425 "$ref": "Empty"
426 },
427 "scopes": [
428 "https://www.googleapis.com/auth/cloud-platform" ,
429 "https://www.googleapis.com/auth/firebase"
430 ]
431 } 431 }
432 } 432 }
433 } 433 }
434 } 434 }
435 } 435 }
436 }, 436 },
437 "revision": "20170523", 437 "revision": "20170807",
438 "rootUrl": "https://firebaserules.googleapis.com/", 438 "rootUrl": "https://firebaserules.googleapis.com/",
439 "schemas": { 439 "schemas": {
440 "FunctionCall": {
441 "description": "Represents a service-defined function call that was invoked during test\nexecution.",
442 "id": "FunctionCall",
443 "properties": {
444 "args": {
445 "description": "The arguments that were provided to the func tion.",
446 "items": {
447 "type": "any"
448 },
449 "type": "array"
450 },
451 "function": {
452 "description": "Name of the function invoked.",
453 "type": "string"
454 }
455 },
456 "type": "object"
457 },
458 "ListReleasesResponse": {
459 "description": "The response for FirebaseRulesService.ListReleases." ,
460 "id": "ListReleasesResponse",
461 "properties": {
462 "releases": {
463 "description": "List of `Release` instances.",
464 "items": {
465 "$ref": "Release"
466 },
467 "type": "array"
468 },
469 "nextPageToken": {
470 "description": "The pagination token to retrieve the next pa ge of results. If the value is\nempty, no further results remain.",
471 "type": "string"
472 }
473 },
474 "type": "object"
475 },
476 "File": {
477 "description": "`File` containing source content.",
478 "id": "File",
479 "properties": {
480 "content": {
481 "description": "Textual Content.",
482 "type": "string"
483 },
484 "fingerprint": {
485 "description": "Fingerprint (e.g. github sha) associated wit h the `File`.",
486 "format": "byte",
487 "type": "string"
488 },
489 "name": {
490 "description": "File name.",
491 "type": "string"
492 }
493 },
494 "type": "object"
495 },
440 "Release": { 496 "Release": {
441 "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`.", 497 "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`.",
442 "id": "Release", 498 "id": "Release",
443 "properties": { 499 "properties": {
500 "createTime": {
501 "description": "Time the release was created.\nOutput only." ,
502 "format": "google-datetime",
503 "type": "string"
504 },
444 "updateTime": { 505 "updateTime": {
445 "description": "Time the release was updated.\nOutput only." , 506 "description": "Time the release was updated.\nOutput only." ,
446 "format": "google-datetime", 507 "format": "google-datetime",
447 "type": "string" 508 "type": "string"
448 }, 509 },
449 "rulesetName": { 510 "rulesetName": {
450 "description": "Name of the `Ruleset` referred to by this `R elease`. The `Ruleset` must\nexist the `Release` to be created.", 511 "description": "Name of the `Ruleset` referred to by this `R elease`. The `Ruleset` must\nexist the `Release` to be created.",
451 "type": "string" 512 "type": "string"
452 }, 513 },
453 "name": { 514 "name": {
454 "description": "Resource name for the `Release`.\n\n`Release ` names may be structured `app1/prod/v2` or flat `app1_prod_v2`\nwhich affords d evelopers a great deal of flexibility in mapping the name\nto the style that bes t fits their existing development practices. For\nexample, a name could refer to an environment, an app, a version, or some\ncombination of three.\n\nIn the tab le below, for the project name `projects/foo`, the following\nrelative release p aths show how flat and structured names might be chosen\nto match a desired deve lopment / deployment strategy.\n\nUse Case | Flat Name | Structure d Name\n-------------|---------------------|----------------\nEnvironments | rel eases/qa | releases/qa\nApps | releases/app1_qa | releases/ap p1/qa\nVersions | releases/app1_v2_qa | releases/app1/v2/qa\n\nThe delimiter between the release name path elements can be almost anything\nand it should wo rk equally well with the release name list filter, but in\nmany ways the structu red paths provide a clearer picture of the\nrelationship between `Release` insta nces.\n\nFormat: `projects/{project_id}/releases/{release_id}`", 515 "description": "Resource name for the `Release`.\n\n`Release ` names may be structured `app1/prod/v2` or flat `app1_prod_v2`\nwhich affords d evelopers a great deal of flexibility in mapping the name\nto the style that bes t fits their existing development practices. For\nexample, a name could refer to an environment, an app, a version, or some\ncombination of three.\n\nIn the tab le below, for the project name `projects/foo`, the following\nrelative release p aths show how flat and structured names might be chosen\nto match a desired deve lopment / deployment strategy.\n\nUse Case | Flat Name | Structure d Name\n-------------|---------------------|----------------\nEnvironments | rel eases/qa | releases/qa\nApps | releases/app1_qa | releases/ap p1/qa\nVersions | releases/app1_v2_qa | releases/app1/v2/qa\n\nThe delimiter between the release name path elements can be almost anything\nand it should wo rk equally well with the release name list filter, but in\nmany ways the structu red paths provide a clearer picture of the\nrelationship between `Release` insta nces.\n\nFormat: `projects/{project_id}/releases/{release_id}`",
455 "type": "string" 516 "type": "string"
456 },
457 "createTime": {
458 "description": "Time the release was created.\nOutput only." ,
459 "format": "google-datetime",
460 "type": "string"
461 } 517 }
462 }, 518 },
463 "type": "object" 519 "type": "object"
464 }, 520 },
465 "TestRulesetResponse": { 521 "TestRulesetResponse": {
466 "description": "The response for FirebaseRulesService.TestRuleset.", 522 "description": "The response for FirebaseRulesService.TestRuleset.",
467 "id": "TestRulesetResponse", 523 "id": "TestRulesetResponse",
468 "properties": { 524 "properties": {
469 "testResults": { 525 "testResults": {
470 "description": "The set of test results given the test cases in the `TestSuite`.\nThe results will appear in the same order as the test case s appear in the\n`TestSuite`.", 526 "description": "The set of test results given the test cases in the `TestSuite`.\nThe results will appear in the same order as the test case s appear in the\n`TestSuite`.",
471 "items": { 527 "items": {
472 "$ref": "TestResult" 528 "$ref": "TestResult"
473 }, 529 },
474 "type": "array" 530 "type": "array"
475 }, 531 },
476 "issues": { 532 "issues": {
477 "description": "Syntactic and semantic `Source` issues of va rying severity. Issues of\n`ERROR` severity will prevent tests from executing.", 533 "description": "Syntactic and semantic `Source` issues of va rying severity. Issues of\n`ERROR` severity will prevent tests from executing.",
478 "items": { 534 "items": {
479 "$ref": "Issue" 535 "$ref": "Issue"
480 }, 536 },
481 "type": "array" 537 "type": "array"
482 } 538 }
483 }, 539 },
484 "type": "object" 540 "type": "object"
485 }, 541 },
486 "ListRulesetsResponse": {
487 "description": "The response for FirebaseRulesService.ListRulesets." ,
488 "id": "ListRulesetsResponse",
489 "properties": {
490 "rulesets": {
491 "description": "List of `Ruleset` instances.",
492 "items": {
493 "$ref": "Ruleset"
494 },
495 "type": "array"
496 },
497 "nextPageToken": {
498 "description": "The pagination token to retrieve the next pa ge of results. If the value is\nempty, no further results remain.",
499 "type": "string"
500 }
501 },
502 "type": "object"
503 },
504 "TestResult": { 542 "TestResult": {
505 "description": "Test result message containing the state of the test as well as a\ndescription and source position for test failures.", 543 "description": "Test result message containing the state of the test as well as a\ndescription and source position for test failures.",
506 "id": "TestResult", 544 "id": "TestResult",
507 "properties": { 545 "properties": {
508 "errorPosition": {
509 "$ref": "SourcePosition",
510 "description": "Position in the `Source` or `Ruleset` where the principle runtime error\noccurs.\n\nEvaluation of an expression may result i n an error. Rules are deny by\ndefault, so a `DENY` expectation when an error is generated is valid.\nWhen there is a `DENY` with an error, the `SourcePosition` is returned.\n\nE.g. `error_position { line: 19 column: 37 }`"
511 },
512 "functionCalls": { 546 "functionCalls": {
513 "description": "The set of function calls made to service-de fined methods.\n\nFunction calls are included in the order in which they are enc ountered\nduring evaluation, are provided for both mocked and unmocked functions ,\nand included on the response regardless of the test `state`.", 547 "description": "The set of function calls made to service-de fined methods.\n\nFunction calls are included in the order in which they are enc ountered\nduring evaluation, are provided for both mocked and unmocked functions ,\nand included on the response regardless of the test `state`.",
514 "items": { 548 "items": {
515 "$ref": "FunctionCall" 549 "$ref": "FunctionCall"
516 }, 550 },
517 "type": "array" 551 "type": "array"
518 }, 552 },
519 "debugMessages": { 553 "debugMessages": {
520 "description": "Debug messages related to test execution iss ues encountered during\nevaluation.\n\nDebug messages may be related to too many or too few invocations of\nfunction mocks or to runtime errors that occur durin g evaluation.\n\nFor example: ```Unable to read variable [name: \"resource\"]``` ", 554 "description": "Debug messages related to test execution iss ues encountered during\nevaluation.\n\nDebug messages may be related to too many or too few invocations of\nfunction mocks or to runtime errors that occur durin g evaluation.\n\nFor example: ```Unable to read variable [name: \"resource\"]``` ",
521 "items": { 555 "items": {
522 "type": "string" 556 "type": "string"
523 }, 557 },
524 "type": "array" 558 "type": "array"
525 }, 559 },
526 "state": { 560 "state": {
527 "description": "State of the test.", 561 "description": "State of the test.",
528 "enum": [ 562 "enum": [
529 "STATE_UNSPECIFIED", 563 "STATE_UNSPECIFIED",
530 "SUCCESS", 564 "SUCCESS",
531 "FAILURE" 565 "FAILURE"
532 ], 566 ],
533 "enumDescriptions": [ 567 "enumDescriptions": [
534 "Test state is not set.", 568 "Test state is not set.",
535 "Test is a success.", 569 "Test is a success.",
536 "Test is a failure." 570 "Test is a failure."
537 ], 571 ],
538 "type": "string" 572 "type": "string"
573 },
574 "errorPosition": {
575 "$ref": "SourcePosition",
576 "description": "Position in the `Source` or `Ruleset` where the principle runtime error\noccurs.\n\nEvaluation of an expression may result i n an error. Rules are deny by\ndefault, so a `DENY` expectation when an error is generated is valid.\nWhen there is a `DENY` with an error, the `SourcePosition` is returned.\n\nE.g. `error_position { line: 19 column: 37 }`"
539 } 577 }
540 }, 578 },
541 "type": "object" 579 "type": "object"
580 },
581 "ListRulesetsResponse": {
582 "description": "The response for FirebaseRulesService.ListRulesets." ,
583 "id": "ListRulesetsResponse",
584 "properties": {
585 "nextPageToken": {
586 "description": "The pagination token to retrieve the next pa ge of results. If the value is\nempty, no further results remain.",
587 "type": "string"
588 },
589 "rulesets": {
590 "description": "List of `Ruleset` instances.",
591 "items": {
592 "$ref": "Ruleset"
593 },
594 "type": "array"
595 }
596 },
597 "type": "object"
542 }, 598 },
543 "Arg": { 599 "Arg": {
544 "description": "Arg matchers for the mock function.", 600 "description": "Arg matchers for the mock function.",
545 "id": "Arg", 601 "id": "Arg",
546 "properties": { 602 "properties": {
547 "anyValue": { 603 "anyValue": {
548 "$ref": "Empty", 604 "$ref": "Empty",
549 "description": "Argument matches any value provided." 605 "description": "Argument matches any value provided."
550 }, 606 },
551 "exactValue": { 607 "exactValue": {
(...skipping 20 matching lines...) Expand all
572 "Empty": { 628 "Empty": {
573 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", 629 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
574 "id": "Empty", 630 "id": "Empty",
575 "properties": {}, 631 "properties": {},
576 "type": "object" 632 "type": "object"
577 }, 633 },
578 "FunctionMock": { 634 "FunctionMock": {
579 "description": "Mock function definition.\n\nMocks must refer to a f unction declared by the target service. The type of\nthe function args and resul t will be inferred at test time. If either the\narg or result values are not com patible with function type declaration, the\nrequest will be considered invalid. \n\nMore than one `FunctionMock` may be provided for a given function name so\nl ong as the `Arg` matchers are distinct. There may be only one function\nfor a gi ven overload where all `Arg` values are `Arg.any_value`.", 635 "description": "Mock function definition.\n\nMocks must refer to a f unction declared by the target service. The type of\nthe function args and resul t will be inferred at test time. If either the\narg or result values are not com patible with function type declaration, the\nrequest will be considered invalid. \n\nMore than one `FunctionMock` may be provided for a given function name so\nl ong as the `Arg` matchers are distinct. There may be only one function\nfor a gi ven overload where all `Arg` values are `Arg.any_value`.",
580 "id": "FunctionMock", 636 "id": "FunctionMock",
581 "properties": { 637 "properties": {
582 "args": {
583 "description": "The list of `Arg` values to match. The order in which the arguments are\nprovided is the order in which they must appear in the function\ninvocation.",
584 "items": {
585 "$ref": "Arg"
586 },
587 "type": "array"
588 },
589 "function": { 638 "function": {
590 "description": "The name of the function.\n\nThe function na me must match one provided by a service declaration.", 639 "description": "The name of the function.\n\nThe function na me must match one provided by a service declaration.",
591 "type": "string" 640 "type": "string"
592 }, 641 },
593 "result": { 642 "result": {
594 "$ref": "Result", 643 "$ref": "Result",
595 "description": "The mock result of the function call." 644 "description": "The mock result of the function call."
645 },
646 "args": {
647 "description": "The list of `Arg` values to match. The order in which the arguments are\nprovided is the order in which they must appear in the function\ninvocation.",
648 "items": {
649 "$ref": "Arg"
650 },
651 "type": "array"
596 } 652 }
597 }, 653 },
598 "type": "object" 654 "type": "object"
599 }, 655 },
600 "Source": { 656 "Source": {
601 "description": "`Source` is one or more `File` messages comprising a logical set of rules.", 657 "description": "`Source` is one or more `File` messages comprising a logical set of rules.",
602 "id": "Source", 658 "id": "Source",
603 "properties": { 659 "properties": {
604 "files": { 660 "files": {
605 "description": "`File` set constituting the `Source` bundle. ", 661 "description": "`File` set constituting the `Source` bundle. ",
(...skipping 17 matching lines...) Expand all
623 "description": "The result is an actual value. The type of t he value must match that\nof the type declared by the service.", 679 "description": "The result is an actual value. The type of t he value must match that\nof the type declared by the service.",
624 "type": "any" 680 "type": "any"
625 } 681 }
626 }, 682 },
627 "type": "object" 683 "type": "object"
628 }, 684 },
629 "SourcePosition": { 685 "SourcePosition": {
630 "description": "Position in the `Source` content including its line, column number, and an\nindex of the `File` in the `Source` message. Used for de bug purposes.", 686 "description": "Position in the `Source` content including its line, column number, and an\nindex of the `File` in the `Source` message. Used for de bug purposes.",
631 "id": "SourcePosition", 687 "id": "SourcePosition",
632 "properties": { 688 "properties": {
689 "line": {
690 "description": "Line number of the source fragment. 1-based. ",
691 "format": "int32",
692 "type": "integer"
693 },
633 "column": { 694 "column": {
634 "description": "First column on the source line associated w ith the source fragment.", 695 "description": "First column on the source line associated w ith the source fragment.",
635 "format": "int32", 696 "format": "int32",
636 "type": "integer" 697 "type": "integer"
637 }, 698 },
638 "fileName": { 699 "fileName": {
639 "description": "Name of the `File`.", 700 "description": "Name of the `File`.",
640 "type": "string" 701 "type": "string"
641 },
642 "line": {
643 "description": "Line number of the source fragment. 1-based. ",
644 "format": "int32",
645 "type": "integer"
646 } 702 }
647 }, 703 },
648 "type": "object" 704 "type": "object"
649 }, 705 },
650 "TestCase": { 706 "TestCase": {
651 "description": "`TestCase` messages provide the request context and an expectation as to\nwhether the given context will be allowed or denied. Test cases may specify\nthe `request`, `resource`, and `function_mocks` to mock a fun ction call to\na service-provided function.\n\nThe `request` object represents c ontext present at request-time.\n\nThe `resource` is the value of the target res ource as it appears in\npersistent storage before the request is executed.", 707 "description": "`TestCase` messages provide the request context and an expectation as to\nwhether the given context will be allowed or denied. Test cases may specify\nthe `request`, `resource`, and `function_mocks` to mock a fun ction call to\na service-provided function.\n\nThe `request` object represents c ontext present at request-time.\n\nThe `resource` is the value of the target res ource as it appears in\npersistent storage before the request is executed.",
652 "id": "TestCase", 708 "id": "TestCase",
653 "properties": { 709 "properties": {
654 "functionMocks": { 710 "functionMocks": {
655 "description": "Optional function mocks for service-defined functions. If not set, any\nservice defined function is expected to return an er ror, which may or may\nnot influence the test outcome.", 711 "description": "Optional function mocks for service-defined functions. If not set, any\nservice defined function is expected to return an er ror, which may or may\nnot influence the test outcome.",
(...skipping 20 matching lines...) Expand all
676 ], 732 ],
677 "type": "string" 733 "type": "string"
678 }, 734 },
679 "request": { 735 "request": {
680 "description": "Request context.\n\nThe exact format of the request context is service-dependent. See the\nappropriate service documentation for information about the supported\nfields and types on the request. Minimally , all services support the\nfollowing fields and types:\n\nRequest field | Type \n---------------|-----------------\nauth.uid | `string`\nauth.token | `map<string, string>`\nheaders | `map<string, string>`\nmethod | `string`\nparams | `map<string, string>`\npath | `string`\nti me | `google.protobuf.Timestamp`\n\nIf the request value is not well-f ormed for the service, the request will\nbe rejected as an invalid argument.", 736 "description": "Request context.\n\nThe exact format of the request context is service-dependent. See the\nappropriate service documentation for information about the supported\nfields and types on the request. Minimally , all services support the\nfollowing fields and types:\n\nRequest field | Type \n---------------|-----------------\nauth.uid | `string`\nauth.token | `map<string, string>`\nheaders | `map<string, string>`\nmethod | `string`\nparams | `map<string, string>`\npath | `string`\nti me | `google.protobuf.Timestamp`\n\nIf the request value is not well-f ormed for the service, the request will\nbe rejected as an invalid argument.",
681 "type": "any" 737 "type": "any"
682 } 738 }
683 }, 739 },
684 "type": "object" 740 "type": "object"
685 }, 741 },
686 "Ruleset": {
687 "description": "`Ruleset` is an immutable copy of `Source` with a gl obally unique identifier\nand a creation time.",
688 "id": "Ruleset",
689 "properties": {
690 "source": {
691 "$ref": "Source",
692 "description": "`Source` for the `Ruleset`."
693 },
694 "createTime": {
695 "description": "Time the `Ruleset` was created.\nOutput only .",
696 "format": "google-datetime",
697 "type": "string"
698 },
699 "name": {
700 "description": "Name of the `Ruleset`. The ruleset_id is aut o generated by the service.\nFormat: `projects/{project_id}/rulesets/{ruleset_id }`\nOutput only.",
701 "type": "string"
702 }
703 },
704 "type": "object"
705 },
706 "TestRulesetRequest": {
707 "description": "The request for FirebaseRulesService.TestRuleset.",
708 "id": "TestRulesetRequest",
709 "properties": {
710 "testSuite": {
711 "$ref": "TestSuite",
712 "description": "Inline `TestSuite` to run."
713 },
714 "source": {
715 "$ref": "Source",
716 "description": "Optional `Source` to be checked for correctn ess.\n\nThis field must not be set when the resource name refers to a `Ruleset`. "
717 }
718 },
719 "type": "object"
720 },
721 "Issue": { 742 "Issue": {
722 "description": "Issues include warnings, errors, and deprecation not ices.", 743 "description": "Issues include warnings, errors, and deprecation not ices.",
723 "id": "Issue", 744 "id": "Issue",
724 "properties": { 745 "properties": {
725 "sourcePosition": { 746 "sourcePosition": {
726 "$ref": "SourcePosition", 747 "$ref": "SourcePosition",
727 "description": "Position of the issue in the `Source`." 748 "description": "Position of the issue in the `Source`."
728 }, 749 },
729 "severity": { 750 "severity": {
730 "description": "The severity of the issue.", 751 "description": "The severity of the issue.",
(...skipping 11 matching lines...) Expand all
742 ], 763 ],
743 "type": "string" 764 "type": "string"
744 }, 765 },
745 "description": { 766 "description": {
746 "description": "Short error description.", 767 "description": "Short error description.",
747 "type": "string" 768 "type": "string"
748 } 769 }
749 }, 770 },
750 "type": "object" 771 "type": "object"
751 }, 772 },
752 "ListReleasesResponse": { 773 "TestRulesetRequest": {
753 "description": "The response for FirebaseRulesService.ListReleases." , 774 "description": "The request for FirebaseRulesService.TestRuleset.",
754 "id": "ListReleasesResponse", 775 "id": "TestRulesetRequest",
755 "properties": { 776 "properties": {
756 "releases": { 777 "testSuite": {
757 "description": "List of `Release` instances.", 778 "$ref": "TestSuite",
758 "items": { 779 "description": "Inline `TestSuite` to run."
759 "$ref": "Release"
760 },
761 "type": "array"
762 }, 780 },
763 "nextPageToken": { 781 "source": {
764 "description": "The pagination token to retrieve the next pa ge of results. If the value is\nempty, no further results remain.", 782 "$ref": "Source",
765 "type": "string" 783 "description": "Optional `Source` to be checked for correctn ess.\n\nThis field must not be set when the resource name refers to a `Ruleset`. "
766 } 784 }
767 }, 785 },
768 "type": "object" 786 "type": "object"
769 }, 787 },
770 "FunctionCall": { 788 "Ruleset": {
771 "description": "Represents a service-defined function call that was invoked during test\nexecution.", 789 "description": "`Ruleset` is an immutable copy of `Source` with a gl obally unique identifier\nand a creation time.",
772 "id": "FunctionCall", 790 "id": "Ruleset",
773 "properties": { 791 "properties": {
774 "args": { 792 "source": {
775 "description": "The arguments that were provided to the func tion.", 793 "$ref": "Source",
776 "items": { 794 "description": "`Source` for the `Ruleset`."
777 "type": "any"
778 },
779 "type": "array"
780 }, 795 },
781 "function": { 796 "createTime": {
782 "description": "Name of the function invoked.", 797 "description": "Time the `Ruleset` was created.\nOutput only .",
798 "format": "google-datetime",
799 "type": "string"
800 },
801 "name": {
802 "description": "Name of the `Ruleset`. The ruleset_id is aut o generated by the service.\nFormat: `projects/{project_id}/rulesets/{ruleset_id }`\nOutput only.",
783 "type": "string" 803 "type": "string"
784 } 804 }
785 }, 805 },
786 "type": "object"
787 },
788 "File": {
789 "description": "`File` containing source content.",
790 "id": "File",
791 "properties": {
792 "content": {
793 "description": "Textual Content.",
794 "type": "string"
795 },
796 "fingerprint": {
797 "description": "Fingerprint (e.g. github sha) associated wit h the `File`.",
798 "format": "byte",
799 "type": "string"
800 },
801 "name": {
802 "description": "File name.",
803 "type": "string"
804 }
805 },
806 "type": "object" 806 "type": "object"
807 } 807 }
808 }, 808 },
809 "servicePath": "", 809 "servicePath": "",
810 "title": "Firebase Rules API", 810 "title": "Firebase Rules API",
811 "version": "v1" 811 "version": "v1"
812 } 812 }
OLDNEW
« no previous file with comments | « discovery/googleapis/firebasedynamiclinks__v1.json ('k') | discovery/googleapis/fitness__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698