Index: discovery/googleapis/firebaserules__v1.json |
diff --git a/discovery/googleapis/firebaserules__v1.json b/discovery/googleapis/firebaserules__v1.json |
index 229f600375803f07537ddff8528cb79996337249..56b0d1af2761d94021ec8b4e5db701336df12909 100644 |
--- a/discovery/googleapis/firebaserules__v1.json |
+++ b/discovery/googleapis/firebaserules__v1.json |
@@ -31,6 +31,27 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"upload_protocol": { |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
@@ -52,11 +73,6 @@ |
"location": "query", |
"type": "string" |
}, |
- "callback": { |
- "description": "JSONP", |
- "location": "query", |
- "type": "string" |
- }, |
"$.xgafv": { |
"description": "V1 error format.", |
"enum": [ |
@@ -70,6 +86,11 @@ |
"location": "query", |
"type": "string" |
}, |
+ "callback": { |
+ "description": "JSONP", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"alt": { |
"default": "json", |
"description": "Data format for response.", |
@@ -95,27 +116,6 @@ |
"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" |
- }, |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
- "location": "query", |
- "type": "string" |
- }, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
- "location": "query", |
- "type": "string" |
} |
}, |
"protocol": "rest", |
@@ -280,6 +280,31 @@ |
}, |
"releases": { |
"methods": { |
+ "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" |
+ ] |
+ }, |
"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", |
@@ -288,11 +313,6 @@ |
"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", |
@@ -310,6 +330,11 @@ |
"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", |
@@ -403,31 +428,6 @@ |
"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,194 +437,10 @@ |
"revision": "20170523", |
"rootUrl": "https://firebaserules.googleapis.com/", |
"schemas": { |
- "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", |
- "properties": { |
- "column": { |
- "description": "First column on the source line associated with the source fragment.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "fileName": { |
- "description": "Name of the `File`.", |
- "type": "string" |
- }, |
- "line": { |
- "description": "Line number of the source fragment. 1-based.", |
- "format": "int32", |
- "type": "integer" |
- } |
- }, |
- "type": "object" |
- }, |
- "TestCase": { |
- "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": { |
- "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": { |
- "$ref": "FunctionMock" |
- }, |
- "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": [ |
- "EXPECTATION_UNSPECIFIED", |
- "ALLOW", |
- "DENY" |
- ], |
- "enumDescriptions": [ |
- "Unspecified expectation.", |
- "Expect an allowed result.", |
- "Expect a denied result." |
- ], |
- "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" |
- } |
- }, |
- "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", |
- "properties": { |
- "sourcePosition": { |
- "$ref": "SourcePosition", |
- "description": "Position of the issue in the `Source`." |
- }, |
- "severity": { |
- "description": "The severity of the issue.", |
- "enum": [ |
- "SEVERITY_UNSPECIFIED", |
- "DEPRECATION", |
- "WARNING", |
- "ERROR" |
- ], |
- "enumDescriptions": [ |
- "An unspecified severity.", |
- "Deprecation issue for statements and method that may no longer be\nsupported or maintained.", |
- "Warnings such as: unused variables.", |
- "Errors such as: unmatched curly braces or variable redefinition." |
- ], |
- "type": "string" |
- }, |
- "description": { |
- "description": "Short error description.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListReleasesResponse": { |
- "description": "The response for FirebaseRulesService.ListReleases.", |
- "id": "ListReleasesResponse", |
- "properties": { |
- "nextPageToken": { |
- "description": "The pagination token to retrieve the next page of results. If the value is\nempty, no further results remain.", |
- "type": "string" |
- }, |
- "releases": { |
- "description": "List of `Release` instances.", |
- "items": { |
- "$ref": "Release" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "File": { |
- "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" |
- }, |
- "content": { |
- "description": "Textual Content.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "FunctionCall": { |
- "description": "Represents a service-defined function call that was invoked during test\nexecution.", |
- "id": "FunctionCall", |
- "properties": { |
- "args": { |
- "description": "The arguments that were provided to the function.", |
- "items": { |
- "type": "any" |
- }, |
- "type": "array" |
- }, |
- "function": { |
- "description": "Name of the function invoked.", |
- "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": { |
- "createTime": { |
- "description": "Time the release was created.\nOutput only.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
"updateTime": { |
"description": "Time the release was updated.\nOutput only.", |
"format": "google-datetime", |
@@ -637,6 +453,11 @@ |
"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" |
+ }, |
+ "createTime": { |
+ "description": "Time the release was created.\nOutput only.", |
+ "format": "google-datetime", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -666,16 +487,16 @@ |
"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" |
- }, |
"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" |
@@ -804,6 +625,185 @@ |
} |
}, |
"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", |
+ "properties": { |
+ "column": { |
+ "description": "First column on the source line associated with the source fragment.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "fileName": { |
+ "description": "Name of the `File`.", |
+ "type": "string" |
+ }, |
+ "line": { |
+ "description": "Line number of the source fragment. 1-based.", |
+ "format": "int32", |
+ "type": "integer" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "TestCase": { |
+ "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": { |
+ "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": { |
+ "$ref": "FunctionMock" |
+ }, |
+ "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": [ |
+ "EXPECTATION_UNSPECIFIED", |
+ "ALLOW", |
+ "DENY" |
+ ], |
+ "enumDescriptions": [ |
+ "Unspecified expectation.", |
+ "Expect an allowed result.", |
+ "Expect a denied result." |
+ ], |
+ "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" |
+ } |
+ }, |
+ "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", |
+ "properties": { |
+ "sourcePosition": { |
+ "$ref": "SourcePosition", |
+ "description": "Position of the issue in the `Source`." |
+ }, |
+ "severity": { |
+ "description": "The severity of the issue.", |
+ "enum": [ |
+ "SEVERITY_UNSPECIFIED", |
+ "DEPRECATION", |
+ "WARNING", |
+ "ERROR" |
+ ], |
+ "enumDescriptions": [ |
+ "An unspecified severity.", |
+ "Deprecation issue for statements and method that may no longer be\nsupported or maintained.", |
+ "Warnings such as: unused variables.", |
+ "Errors such as: unmatched curly braces or variable redefinition." |
+ ], |
+ "type": "string" |
+ }, |
+ "description": { |
+ "description": "Short error description.", |
+ "type": "string" |
+ } |
+ }, |
+ "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" |
+ }, |
+ "FunctionCall": { |
+ "description": "Represents a service-defined function call that was invoked during test\nexecution.", |
+ "id": "FunctionCall", |
+ "properties": { |
+ "args": { |
+ "description": "The arguments that were provided to the function.", |
+ "items": { |
+ "type": "any" |
+ }, |
+ "type": "array" |
+ }, |
+ "function": { |
+ "description": "Name of the function invoked.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "File": { |
+ "description": "`File` containing source content.", |
+ "id": "File", |
+ "properties": { |
+ "content": { |
+ "description": "Textual Content.", |
+ "type": "string" |
+ }, |
+ "fingerprint": { |
+ "description": "Fingerprint (e.g. github sha) associated with the `File`.", |
+ "format": "byte", |
+ "type": "string" |
+ }, |
+ "name": { |
+ "description": "File name.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
} |
}, |
"servicePath": "", |