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

Unified Diff: discovery/googleapis/firebaserules__v1.json

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: discovery/googleapis/firebaserules__v1.json
diff --git a/discovery/googleapis/firebaserules__v1.json b/discovery/googleapis/firebaserules__v1.json
index 6cf9b2c6f8e797c04db6289ccd7f9130b92f5c98..229f600375803f07537ddff8528cb79996337249 100644
--- a/discovery/googleapis/firebaserules__v1.json
+++ b/discovery/googleapis/firebaserules__v1.json
@@ -5,11 +5,11 @@
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
- "https://www.googleapis.com/auth/firebase": {
- "description": "View and administer all your Firebase data and settings"
- },
"https://www.googleapis.com/auth/firebase.readonly": {
"description": "View all your Firebase data and settings"
+ },
+ "https://www.googleapis.com/auth/firebase": {
+ "description": "View and administer all your Firebase data and settings"
}
}
}
@@ -42,13 +42,13 @@
"location": "query",
"type": "boolean"
},
- "fields": {
- "description": "Selector specifying which fields to include in a partial response.",
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
- "uploadType": {
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "fields": {
+ "description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
@@ -86,13 +86,13 @@
"location": "query",
"type": "string"
},
- "key": {
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
+ "access_token": {
+ "description": "OAuth access token.",
"location": "query",
"type": "string"
},
- "access_token": {
- "description": "OAuth access token.",
+ "key": {
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
@@ -107,13 +107,13 @@
"location": "query",
"type": "boolean"
},
- "bearer_token": {
- "description": "OAuth bearer token.",
+ "oauth_token": {
+ "description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
- "oauth_token": {
- "description": "OAuth 2.0 token for the current user.",
+ "bearer_token": {
+ "description": "OAuth bearer token.",
"location": "query",
"type": "string"
}
@@ -180,25 +180,41 @@
"https://www.googleapis.com/auth/firebase"
]
},
- "get": {
- "description": "Get a `Ruleset` by name including the full `Source` contents.",
+ "list": {
+ "description": "List `Ruleset` metadata only and optionally filter the results by `Ruleset`\nname.\n\nThe full `Source` contents of a `Ruleset` may be retrieved with\nGetRuleset.",
"httpMethod": "GET",
- "id": "firebaserules.projects.rulesets.get",
+ "id": "firebaserules.projects.rulesets.list",
"parameterOrder": [
"name"
],
"parameters": {
+ "filter": {
+ "description": "`Ruleset` filter. The list method supports filters with restrictions on\n`Ruleset.name`.\n\nFilters on `Ruleset.create_time` should use the `date` function which\nparses strings that conform to the RFC 3339 date/time specifications.\n\nExample: `create_time > date(\"2017-01-01\") AND name=UUID-*`",
+ "location": "query",
+ "type": "string"
+ },
+ "pageToken": {
+ "description": "Next page token for loading the next batch of `Ruleset` instances.",
+ "location": "query",
+ "type": "string"
+ },
"name": {
- "description": "Resource name for the ruleset to get.\n\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`",
+ "description": "Resource name for the project.\n\nFormat: `projects/{project_id}`",
"location": "path",
- "pattern": "^projects/[^/]+/rulesets/[^/]+$",
+ "pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
+ },
+ "pageSize": {
+ "description": "Page size to load. Maximum of 100. Defaults to 10.\nNote: `page_size` is just a hint and the service may choose to load less\nthan `page_size` due to the size of the output. To traverse all of the\nreleases, caller should iterate until the `page_token` is empty.",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
}
},
- "path": "v1/{+name}",
+ "path": "v1/{+name}/rulesets",
"response": {
- "$ref": "Ruleset"
+ "$ref": "ListRulesetsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
@@ -206,41 +222,25 @@
"https://www.googleapis.com/auth/firebase.readonly"
]
},
- "list": {
- "description": "List `Ruleset` metadata only and optionally filter the results by `Ruleset`\nname.\n\nThe full `Source` contents of a `Ruleset` may be retrieved with\nGetRuleset.",
+ "get": {
+ "description": "Get a `Ruleset` by name including the full `Source` contents.",
"httpMethod": "GET",
- "id": "firebaserules.projects.rulesets.list",
+ "id": "firebaserules.projects.rulesets.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
- "description": "Resource name for the project.\n\nFormat: `projects/{project_id}`",
+ "description": "Resource name for the ruleset to get.\n\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`",
"location": "path",
- "pattern": "^projects/[^/]+$",
+ "pattern": "^projects/[^/]+/rulesets/[^/]+$",
"required": true,
"type": "string"
- },
- "pageToken": {
- "description": "Next page token for loading the next batch of `Ruleset` instances.",
- "location": "query",
- "type": "string"
- },
- "pageSize": {
- "description": "Page size to load. Maximum of 100. Defaults to 10.\nNote: `page_size` is just a hint and the service may choose to load less\nthan `page_size` due to the size of the output. To traverse all of the\nreleases, caller should iterate until the `page_token` is empty.",
- "format": "int32",
- "location": "query",
- "type": "integer"
- },
- "filter": {
- "description": "`Ruleset` filter. The list method supports filters with restrictions on\n`Ruleset.name`.\n\nFilters on `Ruleset.create_time` should use the `date` function which\nparses strings that conform to the RFC 3339 date/time specifications.\n\nExample: `create_time > date(\"2017-01-01\") AND name=UUID-*`",
- "location": "query",
- "type": "string"
}
},
- "path": "v1/{+name}/rulesets",
+ "path": "v1/{+name}",
"response": {
- "$ref": "ListRulesetsResponse"
+ "$ref": "Ruleset"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
@@ -280,29 +280,46 @@
},
"releases": {
"methods": {
- "delete": {
- "description": "Delete a `Release` by resource name.",
- "httpMethod": "DELETE",
- "id": "firebaserules.projects.releases.delete",
+ "list": {
+ "description": "List the `Release` values for a project. This list may optionally be\nfiltered by `Release` name, `Ruleset` name, `TestSuite` name, or any\ncombination thereof.",
+ "httpMethod": "GET",
+ "id": "firebaserules.projects.releases.list",
"parameterOrder": [
"name"
],
"parameters": {
+ "filter": {
+ "description": "`Release` filter. The list method supports filters with restrictions on the\n`Release.name`, `Release.ruleset_name`, and `Release.test_suite_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/releases/prod/v1 | projects/foo/rulesets/uuid1234\nprojects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888\n\nExample 2: A filter of `name=prod* ruleset_name=uuid1234` would return only\n`Release` instances for 'projects/foo' with names prefixed with 'prod'\nreferring to the same `Ruleset` name of 'uuid1234':\n\nName | 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 filter parameters refer to the search filters are\nrelative to the project. Fully qualified prefixed may also be used. e.g.\n`test_suite_name=projects/foo/testsuites/uuid1`",
+ "location": "query",
+ "type": "string"
+ },
+ "pageToken": {
+ "description": "Next page token for the next batch of `Release` instances.",
+ "location": "query",
+ "type": "string"
+ },
"name": {
- "description": "Resource name for the `Release` to delete.\n\nFormat: `projects/{project_id}/releases/{release_id}`",
+ "description": "Resource name for the project.\n\nFormat: `projects/{project_id}`",
"location": "path",
- "pattern": "^projects/[^/]+/releases/.+$",
+ "pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
+ },
+ "pageSize": {
+ "description": "Page size to load. Maximum of 100. Defaults to 10.\nNote: `page_size` is just a hint and the service may choose to load fewer\nthan `page_size` results due to the size of the output. To traverse all of\nthe releases, the caller should iterate until the `page_token` on the\nresponse is empty.",
+ "format": "int32",
+ "location": "query",
+ "type": "integer"
}
},
- "path": "v1/{+name}",
+ "path": "v1/{+name}/releases",
"response": {
- "$ref": "Empty"
+ "$ref": "ListReleasesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/firebase"
+ "https://www.googleapis.com/auth/firebase",
+ "https://www.googleapis.com/auth/firebase.readonly"
]
},
"get": {
@@ -331,48 +348,6 @@
"https://www.googleapis.com/auth/firebase.readonly"
]
},
- "list": {
- "description": "List the `Release` values for a project. This list may optionally be\nfiltered by `Release` name, `Ruleset` name, `TestSuite` name, or any\ncombination thereof.",
- "httpMethod": "GET",
- "id": "firebaserules.projects.releases.list",
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "name": {
- "description": "Resource name for the project.\n\nFormat: `projects/{project_id}`",
- "location": "path",
- "pattern": "^projects/[^/]+$",
- "required": true,
- "type": "string"
- },
- "pageToken": {
- "description": "Next page token for the next batch of `Release` instances.",
- "location": "query",
- "type": "string"
- },
- "pageSize": {
- "description": "Page size to load. Maximum of 100. Defaults to 10.\nNote: `page_size` is just a hint and the service may choose to load fewer\nthan `page_size` results due to the size of the output. To traverse all of\nthe releases, the caller should iterate until the `page_token` on the\nresponse is empty.",
- "format": "int32",
- "location": "query",
- "type": "integer"
- },
- "filter": {
- "description": "`Release` filter. The list method supports filters with restrictions on the\n`Release.name`, `Release.ruleset_name`, and `Release.test_suite_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/releases/prod/v1 | projects/foo/rulesets/uuid1234\nprojects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888\n\nExample 2: A filter of `name=prod* ruleset_name=uuid1234` would return only\n`Release` instances for 'projects/foo' with names prefixed with 'prod'\nreferring to the same `Ruleset` name of 'uuid1234':\n\nName | 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 filter parameters refer to the search filters are\nrelative to the project. Fully qualified prefixed may also be used. e.g.\n`test_suite_name=projects/foo/testsuites/uuid1`",
- "location": "query",
- "type": "string"
- }
- },
- "path": "v1/{+name}/releases",
- "response": {
- "$ref": "ListReleasesResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/firebase",
- "https://www.googleapis.com/auth/firebase.readonly"
- ]
- },
"update": {
"description": "Update a `Release`.\n\nOnly updates to the `ruleset_name` and `test_suite_name` fields will be\nhonored. `Release` rename is not supported. To create a `Release` use the\nCreateRelease method.",
"httpMethod": "PUT",
@@ -428,6 +403,31 @@
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/firebase"
]
+ },
+ "delete": {
+ "description": "Delete a `Release` by resource name.",
+ "httpMethod": "DELETE",
+ "id": "firebaserules.projects.releases.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "Resource name for the `Release` to delete.\n\nFormat: `projects/{project_id}/releases/{release_id}`",
+ "location": "path",
+ "pattern": "^projects/[^/]+/releases/.+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v1/{+name}",
+ "response": {
+ "$ref": "Empty"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/firebase"
+ ]
}
}
}
@@ -437,63 +437,6 @@
"revision": "20170523",
"rootUrl": "https://firebaserules.googleapis.com/",
"schemas": {
- "Empty": {
- "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 it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
- "id": "Empty",
- "properties": {},
- "type": "object"
- },
- "FunctionMock": {
- "description": "Mock function definition.\n\nMocks must refer to a function declared by the target service. The type of\nthe function args and result will be inferred at test time. If either the\narg or result values are not compatible with function type declaration, the\nrequest will be considered invalid.\n\nMore than one `FunctionMock` may be provided for a given function name so\nlong as the `Arg` matchers are distinct. There may be only one function\nfor a given overload where all `Arg` values are `Arg.any_value`.",
- "id": "FunctionMock",
- "properties": {
- "function": {
- "description": "The name of the function.\n\nThe function name must match one provided by a service declaration.",
- "type": "string"
- },
- "result": {
- "$ref": "Result",
- "description": "The mock result of the function call."
- },
- "args": {
- "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.",
- "items": {
- "$ref": "Arg"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "Source": {
- "description": "`Source` is one or more `File` messages comprising a logical set of rules.",
- "id": "Source",
- "properties": {
- "files": {
- "description": "`File` set constituting the `Source` bundle.",
- "items": {
- "$ref": "File"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "Result": {
- "description": "Possible result values from the function mock invocation.",
- "id": "Result",
- "properties": {
- "value": {
- "description": "The result is an actual value. The type of the value must match that\nof the type declared by the service.",
- "type": "any"
- },
- "undefined": {
- "$ref": "Empty",
- "description": "The result is undefined, meaning the result could not be computed."
- }
- },
- "type": "object"
- },
"SourcePosition": {
"description": "Position in the `Source` content including its line, column number, and an\nindex of the `File` in the `Source` message. Used for debug purposes.",
"id": "SourcePosition",
@@ -519,10 +462,6 @@
"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 function call to\na service-provided function.\n\nThe `request` object represents context present at request-time.\n\nThe `resource` is the value of the target resource as it appears in\npersistent storage before the request is executed.",
"id": "TestCase",
"properties": {
- "resource": {
- "description": "Optional resource value as it appears in persistent storage before the\nrequest is fulfilled.\n\nThe resource type depends on the `request.path` value.",
- "type": "any"
- },
"functionMocks": {
"description": "Optional function mocks for service-defined functions. If not set, any\nservice defined function is expected to return an error, which may or may\nnot influence the test outcome.",
"items": {
@@ -530,6 +469,10 @@
},
"type": "array"
},
+ "resource": {
+ "description": "Optional resource value as it appears in persistent storage before the\nrequest is fulfilled.\n\nThe resource type depends on the `request.path` value.",
+ "type": "any"
+ },
"expectation": {
"description": "Test expectation.",
"enum": [
@@ -551,6 +494,41 @@
},
"type": "object"
},
+ "Ruleset": {
+ "description": "`Ruleset` is an immutable copy of `Source` with a globally unique identifier\nand a creation time.",
+ "id": "Ruleset",
+ "properties": {
+ "source": {
+ "$ref": "Source",
+ "description": "`Source` for the `Ruleset`."
+ },
+ "createTime": {
+ "description": "Time the `Ruleset` was created.\nOutput only.",
+ "format": "google-datetime",
+ "type": "string"
+ },
+ "name": {
+ "description": "Name of the `Ruleset`. The ruleset_id is auto generated by the service.\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`\nOutput only.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "TestRulesetRequest": {
+ "description": "The request for FirebaseRulesService.TestRuleset.",
+ "id": "TestRulesetRequest",
+ "properties": {
+ "testSuite": {
+ "$ref": "TestSuite",
+ "description": "Inline `TestSuite` to run."
+ },
+ "source": {
+ "$ref": "Source",
+ "description": "Optional `Source` to be checked for correctness.\n\nThis field must not be set when the resource name refers to a `Ruleset`."
+ }
+ },
+ "type": "object"
+ },
"Issue": {
"description": "Issues include warnings, errors, and deprecation notices.",
"id": "Issue",
@@ -582,37 +560,20 @@
},
"type": "object"
},
- "TestRulesetRequest": {
- "description": "The request for FirebaseRulesService.TestRuleset.",
- "id": "TestRulesetRequest",
- "properties": {
- "source": {
- "$ref": "Source",
- "description": "Optional `Source` to be checked for correctness.\n\nThis field must not be set when the resource name refers to a `Ruleset`."
- },
- "testSuite": {
- "$ref": "TestSuite",
- "description": "Inline `TestSuite` to run."
- }
- },
- "type": "object"
- },
- "Ruleset": {
- "description": "`Ruleset` is an immutable copy of `Source` with a globally unique identifier\nand a creation time.",
- "id": "Ruleset",
+ "ListReleasesResponse": {
+ "description": "The response for FirebaseRulesService.ListReleases.",
+ "id": "ListReleasesResponse",
"properties": {
- "source": {
- "$ref": "Source",
- "description": "`Source` for the `Ruleset`."
- },
- "createTime": {
- "description": "Time the `Ruleset` was created.\nOutput only.",
- "format": "google-datetime",
+ "nextPageToken": {
+ "description": "The pagination token to retrieve the next page of results. If the value is\nempty, no further results remain.",
"type": "string"
},
- "name": {
- "description": "Name of the `Ruleset`. The ruleset_id is auto generated by the service.\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`\nOutput only.",
- "type": "string"
+ "releases": {
+ "description": "List of `Release` instances.",
+ "items": {
+ "$ref": "Release"
+ },
+ "type": "array"
}
},
"type": "object"
@@ -621,6 +582,11 @@
"description": "`File` containing source content.",
"id": "File",
"properties": {
+ "fingerprint": {
+ "description": "Fingerprint (e.g. github sha) associated with the `File`.",
+ "format": "byte",
+ "type": "string"
+ },
"name": {
"description": "File name.",
"type": "string"
@@ -628,11 +594,6 @@
"content": {
"description": "Textual Content.",
"type": "string"
- },
- "fingerprint": {
- "description": "Fingerprint (e.g. github sha) associated with the `File`.",
- "format": "byte",
- "type": "string"
}
},
"type": "object"
@@ -655,36 +616,10 @@
},
"type": "object"
},
- "ListReleasesResponse": {
- "description": "The response for FirebaseRulesService.ListReleases.",
- "id": "ListReleasesResponse",
- "properties": {
- "releases": {
- "description": "List of `Release` instances.",
- "items": {
- "$ref": "Release"
- },
- "type": "array"
- },
- "nextPageToken": {
- "description": "The pagination token to retrieve the next page of results. If the value is\nempty, no further results remain.",
- "type": "string"
- }
- },
- "type": "object"
- },
"Release": {
"description": "`Release` is a named reference to a `Ruleset`. Once a `Release` refers to a\n`Ruleset`, rules-enabled services will be able to enforce the `Ruleset`.",
"id": "Release",
"properties": {
- "name": {
- "description": "Resource name for the `Release`.\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 the style that best 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 table below, for the project name `projects/foo`, the following\nrelative release paths show how flat and structured names might be chosen\nto match a desired development / deployment strategy.\n\nUse Case | Flat Name | Structured Name\n-------------|---------------------|----------------\nEnvironments | 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\nand 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}`",
- "type": "string"
- },
- "rulesetName": {
- "description": "Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must\nexist the `Release` to be created.",
- "type": "string"
- },
"createTime": {
"description": "Time the release was created.\nOutput only.",
"format": "google-datetime",
@@ -694,6 +629,14 @@
"description": "Time the release was updated.\nOutput only.",
"format": "google-datetime",
"type": "string"
+ },
+ "rulesetName": {
+ "description": "Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must\nexist the `Release` to be created.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Resource name for the `Release`.\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 the style that best 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 table below, for the project name `projects/foo`, the following\nrelative release paths show how flat and structured names might be chosen\nto match a desired development / deployment strategy.\n\nUse Case | Flat Name | Structured Name\n-------------|---------------------|----------------\nEnvironments | 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\nand 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}`",
+ "type": "string"
}
},
"type": "object"
@@ -702,17 +645,35 @@
"description": "The response for FirebaseRulesService.TestRuleset.",
"id": "TestRulesetResponse",
"properties": {
+ "testResults": {
+ "description": "The set of test results given the test cases in the `TestSuite`.\nThe results will appear in the same order as the test cases appear in the\n`TestSuite`.",
+ "items": {
+ "$ref": "TestResult"
+ },
+ "type": "array"
+ },
"issues": {
"description": "Syntactic and semantic `Source` issues of varying severity. Issues of\n`ERROR` severity will prevent tests from executing.",
"items": {
"$ref": "Issue"
},
"type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "ListRulesetsResponse": {
+ "description": "The response for FirebaseRulesService.ListRulesets.",
+ "id": "ListRulesetsResponse",
+ "properties": {
+ "nextPageToken": {
+ "description": "The pagination token to retrieve the next page of results. If the value is\nempty, no further results remain.",
+ "type": "string"
},
- "testResults": {
- "description": "The set of test results given the test cases in the `TestSuite`.\nThe results will appear in the same order as the test cases appear in the\n`TestSuite`.",
+ "rulesets": {
+ "description": "List of `Ruleset` instances.",
"items": {
- "$ref": "TestResult"
+ "$ref": "Ruleset"
},
"type": "array"
}
@@ -734,6 +695,13 @@
},
"type": "array"
},
+ "debugMessages": {
+ "description": "Debug messages related to test execution issues 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 during evaluation.\n\nFor example: ```Unable to read variable [name: \"resource\"]```",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
"state": {
"description": "State of the test.",
"enum": [
@@ -747,31 +715,6 @@
"Test is a failure."
],
"type": "string"
- },
- "debugMessages": {
- "description": "Debug messages related to test execution issues 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 during evaluation.\n\nFor example: ```Unable to read variable [name: \"resource\"]```",
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "ListRulesetsResponse": {
- "description": "The response for FirebaseRulesService.ListRulesets.",
- "id": "ListRulesetsResponse",
- "properties": {
- "rulesets": {
- "description": "List of `Ruleset` instances.",
- "items": {
- "$ref": "Ruleset"
- },
- "type": "array"
- },
- "nextPageToken": {
- "description": "The pagination token to retrieve the next page of results. If the value is\nempty, no further results remain.",
- "type": "string"
}
},
"type": "object"
@@ -780,13 +723,13 @@
"description": "Arg matchers for the mock function.",
"id": "Arg",
"properties": {
- "exactValue": {
- "description": "Argument exactly matches value provided.",
- "type": "any"
- },
"anyValue": {
"$ref": "Empty",
"description": "Argument matches any value provided."
+ },
+ "exactValue": {
+ "description": "Argument exactly matches value provided.",
+ "type": "any"
}
},
"type": "object"
@@ -804,6 +747,63 @@
}
},
"type": "object"
+ },
+ "Empty": {
+ "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 it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
+ "id": "Empty",
+ "properties": {},
+ "type": "object"
+ },
+ "FunctionMock": {
+ "description": "Mock function definition.\n\nMocks must refer to a function declared by the target service. The type of\nthe function args and result will be inferred at test time. If either the\narg or result values are not compatible with function type declaration, the\nrequest will be considered invalid.\n\nMore than one `FunctionMock` may be provided for a given function name so\nlong as the `Arg` matchers are distinct. There may be only one function\nfor a given overload where all `Arg` values are `Arg.any_value`.",
+ "id": "FunctionMock",
+ "properties": {
+ "args": {
+ "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.",
+ "items": {
+ "$ref": "Arg"
+ },
+ "type": "array"
+ },
+ "function": {
+ "description": "The name of the function.\n\nThe function name must match one provided by a service declaration.",
+ "type": "string"
+ },
+ "result": {
+ "$ref": "Result",
+ "description": "The mock result of the function call."
+ }
+ },
+ "type": "object"
+ },
+ "Source": {
+ "description": "`Source` is one or more `File` messages comprising a logical set of rules.",
+ "id": "Source",
+ "properties": {
+ "files": {
+ "description": "`File` set constituting the `Source` bundle.",
+ "items": {
+ "$ref": "File"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Result": {
+ "description": "Possible result values from the function mock invocation.",
+ "id": "Result",
+ "properties": {
+ "undefined": {
+ "$ref": "Empty",
+ "description": "The result is undefined, meaning the result could not be computed."
+ },
+ "value": {
+ "description": "The result is an actual value. The type of the value must match that\nof the type declared by the service.",
+ "type": "any"
+ }
+ },
+ "type": "object"
}
},
"servicePath": "",
« no previous file with comments | « discovery/googleapis/firebasedynamiclinks__v1.json ('k') | discovery/googleapis/gamesConfiguration__v1configuration.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698