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.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 13 matching lines...) Expand all Loading... |
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": { |
| 34 "key": { |
| 35 "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.", |
| 36 "location": "query", |
| 37 "type": "string" |
| 38 }, |
| 39 "access_token": { |
| 40 "description": "OAuth access token.", |
| 41 "location": "query", |
| 42 "type": "string" |
| 43 }, |
34 "quotaUser": { | 44 "quotaUser": { |
35 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 45 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
36 "location": "query", | 46 "location": "query", |
37 "type": "string" | 47 "type": "string" |
38 }, | 48 }, |
39 "pp": { | 49 "pp": { |
40 "default": "true", | 50 "default": "true", |
41 "description": "Pretty-print response.", | 51 "description": "Pretty-print response.", |
42 "location": "query", | 52 "location": "query", |
43 "type": "boolean" | 53 "type": "boolean" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 "media", | 109 "media", |
100 "proto" | 110 "proto" |
101 ], | 111 ], |
102 "enumDescriptions": [ | 112 "enumDescriptions": [ |
103 "Responses with Content-Type of application/json", | 113 "Responses with Content-Type of application/json", |
104 "Media download with context-dependent Content-Type", | 114 "Media download with context-dependent Content-Type", |
105 "Responses with Content-Type of application/x-protobuf" | 115 "Responses with Content-Type of application/x-protobuf" |
106 ], | 116 ], |
107 "location": "query", | 117 "location": "query", |
108 "type": "string" | 118 "type": "string" |
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 }, | |
115 "access_token": { | |
116 "description": "OAuth access 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 27 matching lines...) Expand all Loading... |
156 "rulesets": { | 156 "rulesets": { |
157 "methods": { | 157 "methods": { |
158 "list": { | 158 "list": { |
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.", | 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.", |
160 "httpMethod": "GET", | 160 "httpMethod": "GET", |
161 "id": "firebaserules.projects.rulesets.list", | 161 "id": "firebaserules.projects.rulesets.list", |
162 "parameterOrder": [ | 162 "parameterOrder": [ |
163 "name" | 163 "name" |
164 ], | 164 ], |
165 "parameters": { | 165 "parameters": { |
| 166 "filter": { |
| 167 "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-*`", |
| 168 "location": "query", |
| 169 "type": "string" |
| 170 }, |
166 "pageToken": { | 171 "pageToken": { |
167 "description": "Next page token for loading
the next batch of `Ruleset` instances.", | 172 "description": "Next page token for loading
the next batch of `Ruleset` instances.", |
168 "location": "query", | 173 "location": "query", |
169 "type": "string" | 174 "type": "string" |
170 }, | 175 }, |
171 "name": { | 176 "name": { |
172 "description": "Resource name for the projec
t.\n\nFormat: `projects/{project_id}`", | 177 "description": "Resource name for the projec
t.\n\nFormat: `projects/{project_id}`", |
173 "location": "path", | 178 "location": "path", |
174 "pattern": "^projects/[^/]+$", | 179 "pattern": "^projects/[^/]+$", |
175 "required": true, | 180 "required": true, |
176 "type": "string" | 181 "type": "string" |
177 }, | 182 }, |
178 "pageSize": { | 183 "pageSize": { |
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.", | 184 "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.", |
180 "format": "int32", | 185 "format": "int32", |
181 "location": "query", | 186 "location": "query", |
182 "type": "integer" | 187 "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" | |
188 } | 188 } |
189 }, | 189 }, |
190 "path": "v1/{+name}/rulesets", | 190 "path": "v1/{+name}/rulesets", |
191 "response": { | 191 "response": { |
192 "$ref": "ListRulesetsResponse" | 192 "$ref": "ListRulesetsResponse" |
193 }, | 193 }, |
194 "scopes": [ | 194 "scopes": [ |
195 "https://www.googleapis.com/auth/cloud-platform"
, | 195 "https://www.googleapis.com/auth/cloud-platform"
, |
196 "https://www.googleapis.com/auth/firebase", | 196 "https://www.googleapis.com/auth/firebase", |
197 "https://www.googleapis.com/auth/firebase.readon
ly" | 197 "https://www.googleapis.com/auth/firebase.readon
ly" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 ] | 430 ] |
431 } | 431 } |
432 } | 432 } |
433 } | 433 } |
434 } | 434 } |
435 } | 435 } |
436 }, | 436 }, |
437 "revision": "20170807", | 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 }, | |
496 "Release": { | 440 "Release": { |
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`.", | 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`.", |
498 "id": "Release", | 442 "id": "Release", |
499 "properties": { | 443 "properties": { |
500 "createTime": { | |
501 "description": "Time the release was created.\nOutput only."
, | |
502 "format": "google-datetime", | |
503 "type": "string" | |
504 }, | |
505 "updateTime": { | 444 "updateTime": { |
506 "description": "Time the release was updated.\nOutput only."
, | 445 "description": "Time the release was updated.\nOutput only."
, |
507 "format": "google-datetime", | 446 "format": "google-datetime", |
508 "type": "string" | 447 "type": "string" |
509 }, | 448 }, |
510 "rulesetName": { | 449 "rulesetName": { |
511 "description": "Name of the `Ruleset` referred to by this `R
elease`. The `Ruleset` must\nexist the `Release` to be created.", | 450 "description": "Name of the `Ruleset` referred to by this `R
elease`. The `Ruleset` must\nexist the `Release` to be created.", |
512 "type": "string" | 451 "type": "string" |
513 }, | 452 }, |
514 "name": { | 453 "name": { |
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}`", | 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}`", |
516 "type": "string" | 455 "type": "string" |
| 456 }, |
| 457 "createTime": { |
| 458 "description": "Time the release was created.\nOutput only."
, |
| 459 "format": "google-datetime", |
| 460 "type": "string" |
517 } | 461 } |
518 }, | 462 }, |
519 "type": "object" | 463 "type": "object" |
520 }, | 464 }, |
521 "TestRulesetResponse": { | 465 "TestRulesetResponse": { |
522 "description": "The response for FirebaseRulesService.TestRuleset.", | 466 "description": "The response for FirebaseRulesService.TestRuleset.", |
523 "id": "TestRulesetResponse", | 467 "id": "TestRulesetResponse", |
524 "properties": { | 468 "properties": { |
525 "testResults": { | 469 "testResults": { |
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`.", | 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`.", |
527 "items": { | 471 "items": { |
528 "$ref": "TestResult" | 472 "$ref": "TestResult" |
529 }, | 473 }, |
530 "type": "array" | 474 "type": "array" |
531 }, | 475 }, |
532 "issues": { | 476 "issues": { |
533 "description": "Syntactic and semantic `Source` issues of va
rying severity. Issues of\n`ERROR` severity will prevent tests from executing.", | 477 "description": "Syntactic and semantic `Source` issues of va
rying severity. Issues of\n`ERROR` severity will prevent tests from executing.", |
534 "items": { | 478 "items": { |
535 "$ref": "Issue" | 479 "$ref": "Issue" |
536 }, | 480 }, |
537 "type": "array" | 481 "type": "array" |
538 } | 482 } |
539 }, | 483 }, |
540 "type": "object" | 484 "type": "object" |
541 }, | 485 }, |
| 486 "ListRulesetsResponse": { |
| 487 "description": "The response for FirebaseRulesService.ListRulesets."
, |
| 488 "id": "ListRulesetsResponse", |
| 489 "properties": { |
| 490 "nextPageToken": { |
| 491 "description": "The pagination token to retrieve the next pa
ge of results. If the value is\nempty, no further results remain.", |
| 492 "type": "string" |
| 493 }, |
| 494 "rulesets": { |
| 495 "description": "List of `Ruleset` instances.", |
| 496 "items": { |
| 497 "$ref": "Ruleset" |
| 498 }, |
| 499 "type": "array" |
| 500 } |
| 501 }, |
| 502 "type": "object" |
| 503 }, |
542 "TestResult": { | 504 "TestResult": { |
543 "description": "Test result message containing the state of the test
as well as a\ndescription and source position for test failures.", | 505 "description": "Test result message containing the state of the test
as well as a\ndescription and source position for test failures.", |
544 "id": "TestResult", | 506 "id": "TestResult", |
545 "properties": { | 507 "properties": { |
546 "functionCalls": { | 508 "functionCalls": { |
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`.", | 509 "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`.", |
548 "items": { | 510 "items": { |
549 "$ref": "FunctionCall" | 511 "$ref": "FunctionCall" |
550 }, | 512 }, |
551 "type": "array" | 513 "type": "array" |
(...skipping 19 matching lines...) Expand all Loading... |
571 ], | 533 ], |
572 "type": "string" | 534 "type": "string" |
573 }, | 535 }, |
574 "errorPosition": { | 536 "errorPosition": { |
575 "$ref": "SourcePosition", | 537 "$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 }`" | 538 "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 }`" |
577 } | 539 } |
578 }, | 540 }, |
579 "type": "object" | 541 "type": "object" |
580 }, | 542 }, |
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" | |
598 }, | |
599 "Arg": { | 543 "Arg": { |
600 "description": "Arg matchers for the mock function.", | 544 "description": "Arg matchers for the mock function.", |
601 "id": "Arg", | 545 "id": "Arg", |
602 "properties": { | 546 "properties": { |
603 "anyValue": { | 547 "anyValue": { |
604 "$ref": "Empty", | 548 "$ref": "Empty", |
605 "description": "Argument matches any value provided." | 549 "description": "Argument matches any value provided." |
606 }, | 550 }, |
607 "exactValue": { | 551 "exactValue": { |
608 "description": "Argument exactly matches value provided.", | 552 "description": "Argument exactly matches value provided.", |
(...skipping 19 matching lines...) Expand all Loading... |
628 "Empty": { | 572 "Empty": { |
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 `{}`.", | 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 `{}`.", |
630 "id": "Empty", | 574 "id": "Empty", |
631 "properties": {}, | 575 "properties": {}, |
632 "type": "object" | 576 "type": "object" |
633 }, | 577 }, |
634 "FunctionMock": { | 578 "FunctionMock": { |
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`.", | 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`.", |
636 "id": "FunctionMock", | 580 "id": "FunctionMock", |
637 "properties": { | 581 "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 }, |
638 "function": { | 589 "function": { |
639 "description": "The name of the function.\n\nThe function na
me must match one provided by a service declaration.", | 590 "description": "The name of the function.\n\nThe function na
me must match one provided by a service declaration.", |
640 "type": "string" | 591 "type": "string" |
641 }, | 592 }, |
642 "result": { | 593 "result": { |
643 "$ref": "Result", | 594 "$ref": "Result", |
644 "description": "The mock result of the function call." | 595 "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" | |
652 } | 596 } |
653 }, | 597 }, |
654 "type": "object" | 598 "type": "object" |
655 }, | 599 }, |
656 "Source": { | 600 "Source": { |
657 "description": "`Source` is one or more `File` messages comprising a
logical set of rules.", | 601 "description": "`Source` is one or more `File` messages comprising a
logical set of rules.", |
658 "id": "Source", | 602 "id": "Source", |
659 "properties": { | 603 "properties": { |
660 "files": { | 604 "files": { |
661 "description": "`File` set constituting the `Source` bundle.
", | 605 "description": "`File` set constituting the `Source` bundle.
", |
(...skipping 17 matching lines...) Expand all Loading... |
679 "description": "The result is an actual value. The type of t
he value must match that\nof the type declared by the service.", | 623 "description": "The result is an actual value. The type of t
he value must match that\nof the type declared by the service.", |
680 "type": "any" | 624 "type": "any" |
681 } | 625 } |
682 }, | 626 }, |
683 "type": "object" | 627 "type": "object" |
684 }, | 628 }, |
685 "SourcePosition": { | 629 "SourcePosition": { |
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.", | 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.", |
687 "id": "SourcePosition", | 631 "id": "SourcePosition", |
688 "properties": { | 632 "properties": { |
689 "line": { | |
690 "description": "Line number of the source fragment. 1-based.
", | |
691 "format": "int32", | |
692 "type": "integer" | |
693 }, | |
694 "column": { | 633 "column": { |
695 "description": "First column on the source line associated w
ith the source fragment.", | 634 "description": "First column on the source line associated w
ith the source fragment.", |
696 "format": "int32", | 635 "format": "int32", |
697 "type": "integer" | 636 "type": "integer" |
698 }, | 637 }, |
699 "fileName": { | 638 "fileName": { |
700 "description": "Name of the `File`.", | 639 "description": "Name of the `File`.", |
701 "type": "string" | 640 "type": "string" |
| 641 }, |
| 642 "line": { |
| 643 "description": "Line number of the source fragment. 1-based.
", |
| 644 "format": "int32", |
| 645 "type": "integer" |
702 } | 646 } |
703 }, | 647 }, |
704 "type": "object" | 648 "type": "object" |
705 }, | 649 }, |
706 "TestCase": { | 650 "TestCase": { |
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.", | 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.", |
708 "id": "TestCase", | 652 "id": "TestCase", |
709 "properties": { | 653 "properties": { |
710 "functionMocks": { | 654 "functionMocks": { |
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.", | 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.", |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 "$ref": "Source", | 726 "$ref": "Source", |
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`.
" | 727 "description": "Optional `Source` to be checked for correctn
ess.\n\nThis field must not be set when the resource name refers to a `Ruleset`.
" |
784 } | 728 } |
785 }, | 729 }, |
786 "type": "object" | 730 "type": "object" |
787 }, | 731 }, |
788 "Ruleset": { | 732 "Ruleset": { |
789 "description": "`Ruleset` is an immutable copy of `Source` with a gl
obally unique identifier\nand a creation time.", | 733 "description": "`Ruleset` is an immutable copy of `Source` with a gl
obally unique identifier\nand a creation time.", |
790 "id": "Ruleset", | 734 "id": "Ruleset", |
791 "properties": { | 735 "properties": { |
| 736 "name": { |
| 737 "description": "Name of the `Ruleset`. The ruleset_id is aut
o generated by the service.\nFormat: `projects/{project_id}/rulesets/{ruleset_id
}`\nOutput only.", |
| 738 "type": "string" |
| 739 }, |
792 "source": { | 740 "source": { |
793 "$ref": "Source", | 741 "$ref": "Source", |
794 "description": "`Source` for the `Ruleset`." | 742 "description": "`Source` for the `Ruleset`." |
795 }, | 743 }, |
796 "createTime": { | 744 "createTime": { |
797 "description": "Time the `Ruleset` was created.\nOutput only
.", | 745 "description": "Time the `Ruleset` was created.\nOutput only
.", |
798 "format": "google-datetime", | 746 "format": "google-datetime", |
799 "type": "string" | 747 "type": "string" |
| 748 } |
| 749 }, |
| 750 "type": "object" |
| 751 }, |
| 752 "ListReleasesResponse": { |
| 753 "description": "The response for FirebaseRulesService.ListReleases."
, |
| 754 "id": "ListReleasesResponse", |
| 755 "properties": { |
| 756 "releases": { |
| 757 "description": "List of `Release` instances.", |
| 758 "items": { |
| 759 "$ref": "Release" |
| 760 }, |
| 761 "type": "array" |
800 }, | 762 }, |
801 "name": { | 763 "nextPageToken": { |
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.", | 764 "description": "The pagination token to retrieve the next pa
ge of results. If the value is\nempty, no further results remain.", |
803 "type": "string" | 765 "type": "string" |
804 } | 766 } |
805 }, | 767 }, |
| 768 "type": "object" |
| 769 }, |
| 770 "FunctionCall": { |
| 771 "description": "Represents a service-defined function call that was
invoked during test\nexecution.", |
| 772 "id": "FunctionCall", |
| 773 "properties": { |
| 774 "args": { |
| 775 "description": "The arguments that were provided to the func
tion.", |
| 776 "items": { |
| 777 "type": "any" |
| 778 }, |
| 779 "type": "array" |
| 780 }, |
| 781 "function": { |
| 782 "description": "Name of the function invoked.", |
| 783 "type": "string" |
| 784 } |
| 785 }, |
| 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 } |
OLD | NEW |