update all json files

This commit is contained in:
Sebastian Thiel
2020-04-12 18:55:37 +08:00
parent ea3b428364
commit aacc30f08d
260 changed files with 138411 additions and 26293 deletions

View File

@@ -28,6 +28,7 @@
},
"id": "firebaserules:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://firebaserules.mtls.googleapis.com/",
"name": "firebaserules",
"ownerDomain": "google.com",
"ownerName": "Google",
@@ -124,7 +125,7 @@
"name": {
"description": "Tests may either provide `source` or a `Ruleset` resource name.\n\nFor tests against `source`, the resource name must refer to the project:\nFormat: `projects/{project_id}`\n\nFor tests against a `Ruleset`, this must be the `Ruleset` resource name:\nFormat: `projects/{project_id}/rulesets/{ruleset_id}`",
"location": "path",
"pattern": "^projects/.+$",
"pattern": "^projects/.*$",
"required": true,
"type": "string"
}
@@ -187,7 +188,7 @@
"name": {
"description": "Resource name for the `Release` to delete.\n\nFormat: `projects/{project_id}/releases/{release_id}`",
"location": "path",
"pattern": "^projects/[^/]+/releases/.+$",
"pattern": "^projects/[^/]+/releases/.*$",
"required": true,
"type": "string"
}
@@ -213,7 +214,7 @@
"name": {
"description": "Resource name of the `Release`.\n\nFormat: `projects/{project_id}/releases/{release_id}`",
"location": "path",
"pattern": "^projects/[^/]+/releases/.+$",
"pattern": "^projects/[^/]+/releases/.*$",
"required": true,
"type": "string"
}
@@ -250,7 +251,7 @@
"name": {
"description": "Resource name of the `Release`.\n\nFormat: `projects/{project_id}/releases/{release_id}`",
"location": "path",
"pattern": "^projects/[^/]+/releases/.+$",
"pattern": "^projects/[^/]+/releases/.*$",
"required": true,
"type": "string"
}
@@ -320,7 +321,7 @@
"name": {
"description": "Resource name for the project which owns this `Release`.\n\nFormat: `projects/{project_id}`",
"location": "path",
"pattern": "^projects/[^/]+/releases/.+$",
"pattern": "^projects/[^/]+/releases/.*$",
"required": true,
"type": "string"
}
@@ -471,7 +472,7 @@
}
}
},
"revision": "20190610",
"revision": "20200303",
"rootUrl": "https://firebaserules.googleapis.com/",
"schemas": {
"Arg": {
@@ -495,6 +496,31 @@
"properties": {},
"type": "object"
},
"ExpressionReport": {
"description": "Describes where in a file an expression is found and what it was\nevaluated to over the course of its use.",
"id": "ExpressionReport",
"properties": {
"children": {
"description": "Subexpressions",
"items": {
"$ref": "ExpressionReport"
},
"type": "array"
},
"sourcePosition": {
"$ref": "SourcePosition",
"description": "Position of expression in original rules source."
},
"values": {
"description": "Values that this expression evaluated to when encountered.",
"items": {
"$ref": "ValueCount"
},
"type": "array"
}
},
"type": "object"
},
"File": {
"description": "`File` containing source content.",
"id": "File",
@@ -676,6 +702,20 @@
},
"type": "object"
},
"Metadata": {
"description": "Metadata for a Ruleset.",
"id": "Metadata",
"properties": {
"services": {
"description": "Services that this ruleset has declarations for (e.g.,\n\"cloud.firestore\"). There may be 0+ of these.",
"items": {
"type": "string"
},
"type": "array"
}
},
"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",
@@ -725,6 +765,10 @@
"format": "google-datetime",
"type": "string"
},
"metadata": {
"$ref": "Metadata",
"description": "The metadata for this ruleset.\nOutput only."
},
"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"
@@ -759,6 +803,16 @@
"format": "int32",
"type": "integer"
},
"currentOffset": {
"description": "Start position relative to the beginning of the file.",
"format": "int32",
"type": "integer"
},
"endOffset": {
"description": "End position relative to the beginning of the file.",
"format": "int32",
"type": "integer"
},
"fileName": {
"description": "Name of the `File`.",
"type": "string"
@@ -789,6 +843,22 @@
],
"type": "string"
},
"expressionReportLevel": {
"description": "Specifies what should be included in the response.",
"enum": [
"LEVEL_UNSPECIFIED",
"NONE",
"FULL",
"VISITED"
],
"enumDescriptions": [
"No level has been specified. Defaults to \"NONE\" behavior.",
"Do not include any additional information.",
"Include detailed reporting on expressions evaluated.",
"Only include the expressions that were visited during evaluation."
],
"type": "string"
},
"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": {
@@ -796,6 +866,20 @@
},
"type": "array"
},
"pathEncoding": {
"description": "Specifies whether paths (such as request.path) are encoded and how.",
"enum": [
"ENCODING_UNSPECIFIED",
"URL_ENCODED",
"PLAIN"
],
"enumDescriptions": [
"No encoding has been specified. Defaults to \"URL_ENCODED\" behavior.",
"Treats path segments as URL encoded but with non-encoded separators\n(\"/\"). This is the default behavior.",
"Treats total path as non-URL encoded e.g. raw."
],
"type": "string"
},
"request": {
"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`\ntime | `google.protobuf.Timestamp`\n\nIf the request value is not well-formed for the service, the request will\nbe rejected as an invalid argument.",
"type": "any"
@@ -822,6 +906,13 @@
"$ref": "SourcePosition",
"description": "Position in the `Source` or `Ruleset` where the principle runtime error\noccurs.\n\nEvaluation of an expression may result in 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 }`"
},
"expressionReports": {
"description": "The mapping from expression in the ruleset AST to the values they were\nevaluated to. Partially-nested to mirror AST structure. Note that this\nfield is actually tracking expressions and not permission statements in\ncontrast to the \"visited_expressions\" field above. Literal expressions\nare omitted.",
"items": {
"$ref": "ExpressionReport"
},
"type": "array"
},
"functionCalls": {
"description": "The set of function calls made to service-defined methods.\n\nFunction calls are included in the order in which they are encountered\nduring evaluation, are provided for both mocked and unmocked functions,\nand included on the response regardless of the test `state`.",
"items": {
@@ -919,6 +1010,22 @@
},
"type": "object"
},
"ValueCount": {
"description": "Tuple for how many times an Expression was evaluated to a particular\nExpressionValue.",
"id": "ValueCount",
"properties": {
"count": {
"description": "The amount of times that expression returned.",
"format": "int32",
"type": "integer"
},
"value": {
"description": "The return value of the expression",
"type": "any"
}
},
"type": "object"
},
"VisitedExpression": {
"description": "Store the position and access outcome for an expression visited in rules.",
"id": "VisitedExpression",